[Top][All Lists]

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

Re: font-lock-syntactic-keywords obsolet?

From: Andreas Röhler
Subject: Re: font-lock-syntactic-keywords obsolet?
Date: Sun, 19 Jun 2016 17:27:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0

On 19.06.2016 16:36, Stefan Monnier wrote:
The question is if `font-lock-syntactic-keywords' really should be
declared obsolete.
 From docu of `syntax-propertize-function':
"The specified function may call `syntax-ppss' on any position
before END, but it should not call `syntax-ppss-flush-cache',
which means that it should not call `syntax-ppss' on some
position and later modify the buffer on some earlier position."
So "on any position" but not "on some position"?
IMHO that's not ready.
That presumes that font-lock-syntactic-keywords does not suffer from
tricky interactions with syntax-ppss.  Of course, that's not the case,
instead these are simply undocumented.


So let's cleanup that. Separate the definition of a rule from code which applies it.

reply via email to

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