[Top][All Lists]

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

Re: font-lock-syntactic-keywords obsolet?

From: Alan Mackenzie
Subject: Re: font-lock-syntactic-keywords obsolet?
Date: Sun, 19 Jun 2016 15:12:27 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

Hello, Stefan.

On Sun, Jun 19, 2016 at 10:36:52AM -0400, 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.

Wouldn't the answer be simply to document these?

I may be wrong here, but aren't these interactions only tricky when
syntax-propertize-function is not nil?

>         Stefan

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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