emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-syntactic-keywords obsolet?


From: Stefan Monnier
Subject: Re: font-lock-syntactic-keywords obsolet?
Date: Sun, 19 Jun 2016 22:58:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> > The question is if `font-lock-syntactic-keywords' really should be
>> > declared obsolete.
[...]
>> 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?

The answer to what?  To the question of whether
`font-lock-syntactic-keywords' should be declared obsolete?
Well, I guess you're right that it would make it slightly more obvious
why it should be declared obsolete, but frankly, I don't care that much
if people understand why.  It just has been declared obsolete and if you
want that decision to be reverted you should provide good arguments
against it.  "syntax-propertize is not perfect" is clearly not a good
enough argument, especially when the imperfections hinted at (Andreas
Röhler still hasn't revealed what he considers are those imperfections)
also affect `font-lock-syntactic-keywords'.

If someones doesn't like something about syntax-propertize (or
syntax-ppss), they should file a bug report.  And if they want that
thing to be improved, providing a good concrete case where the
misfeature bites is always a good way to motivate people to fix it.
E.g. the caveat regarding the use of syntax-ppss from syntax-propertize
could be fixed if it's important enough (I don't think there's anything
particularly hard about it).


        Stefan




reply via email to

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