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

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

Re: rainbow-delimiters-mode, syntax-begin-function and font-lock-beginni


From: Stefan Monnier
Subject: Re: rainbow-delimiters-mode, syntax-begin-function and font-lock-beginning-of-syntax-function
Date: Tue, 25 Jan 2022 08:55:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> Right, if the version of emacs has `syntax-begin-function', then one could 
> use that,
> as has been done.  I am making a new version without calls to things that 
> would,
>  be obsolete, but without breaking the colouring functionality. 
>
> There is a call to flush the cache `(syntax-ppss-flush-cache 0' with 
> `(boundp 'syntax-begin-function)'.  Would this still be necessary?  

I recommend you read a bit more to understand a bit what these things do
(e.g. what does it mean for `syntax-begin-function` to be nil) because
changing code which you don't understand at all is just not fun.


        Stefan




reply via email to

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