emacs-devel
[Top][All Lists]
Advanced

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

Re: font lock with functions


From: David Engster
Subject: Re: font lock with functions
Date: Wed, 01 Apr 2020 12:13:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)

>> - It is very easy during testing to completely hang your Emacs session
>>   if one of the font-lock functions hangs. One usually needs to kill
>>   Emacs in this case.
>
> `jit-lock-debug-mode` might be helpful there.

Thanks. Did not know this one.

> You can't use the `font-lock-keywords` special syntax for that, but you
> can still do it (by hand).  E.g.

>       (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".
>       nil)

Oh, I see. This is very helpful.

-David



reply via email to

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