[Top][All Lists]

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

Re: font lock with functions

From: Stefan Monnier
Subject: Re: font lock with functions
Date: Tue, 31 Mar 2020 10:56:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>        (while ...
>>          (put-text-property x y 'face 'foobar-face)
>>          ...)
>>        ;; Return nil if you don't want font-lock to call you again right away
>>        ;; to "look for the next match".
> I was going to suggesting this myself, but isn't this approach even more of
> a hack (i.e. undocumented feature)?

I don't see it as a hack, no.  It would be nice for font-lock to provide
a more direct way to get the same result, but it's what we have.


reply via email to

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