|
From: | Dmitry Gutov |
Subject: | Re: font lock with functions |
Date: | Tue, 31 Mar 2020 18:04:16 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 31.03.2020 17:56, Stefan Monnier wrote:
(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.
OK, but we should probably document this possibility better, then.
[Prev in Thread] | Current Thread | [Next in Thread] |