emacs-devel
[Top][All Lists]
Advanced

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

Re: Help Understanding syntax-propertize-function


From: Filipp Gunbin
Subject: Re: Help Understanding syntax-propertize-function
Date: Thu, 25 Mar 2021 01:54:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

On 24/03/2021 18:10 -0400, Stefan Monnier wrote:

>> There's the prog1 form at the end of hcl--font-lock-open-heredoc:
>>
>> ...
>>       (prog1 (string-to-syntax "|")
>>         (goto-char (+ 2 start))))))
>
> Indeed, there is, but I don't know what worries you bout it.
>
>> It looks like it's meant to be a special "(prog1 EXP . EXPS)" form for
>> syntax-propertize-rules.
>
> I don't think so.

Then prog1 is confusing there.  It's not special, as you confirm, and
it's not needed otherwise.  Just

(goto-char (+ 2 start))
(string-to-syntax "|")

will do - without raising suspicions :-)

Filipp



reply via email to

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