help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When is a syntax-propertize-function called when parse-sexp-lookup-p


From: Stefan Monnier
Subject: Re: When is a syntax-propertize-function called when parse-sexp-lookup-properties is t for a current buffer?
Date: Tue, 05 Oct 2021 10:57:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>   (defconst erlang-mode-syntax-propertize-function
>     (syntax-propertize-rules
>      ("\\(<\\)<" (1 "(>"))
>      (">\\(>\\)" (2 ")<")))
>     "Syntax properties to activate << >> pairing.")
>   (setq-local parse-sexp-lookup-properties t)
>   (setq-local syntax-propertize-function
>               erlang-mode-syntax-propertize-function)

`setq-local` at the toplevel makes no sense.
Is it really the code you're using, or are you paraphrasing?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]