GNU bug report logs -
#16526
24.3.50; scroll-conservatively & c-mode regression
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Thu, 23 Jan 2014 08:54:02 UTC
Severity: important
Found in version 24.3.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #234 received at 16526-done <at> debbugs.gnu.org (full text, mbox):
>> FWIW, CC-mode is one of the last remaining major modes (at least the
>> only one I know of that's bundled with Emacs) that doesn't play nice
>> with syntax-ppss.
> Doesn't it? First I've heard of it.
Well, I go by what you said:
No, syntax-ppss wouldn't do here without considerable modification.
> Though of course, what comes out of syntax-ppss is going to be of
> limited value when you've got lines like this in your source:
>
> #define FOO BAR /* accidentally unclosed comment.
Yes, sometimes you need to be a bit creative to get syntax-ppss
to behave. But so far, I've always managed to coerce it acceptably.
> Just as a matter of interest, what code is there around which wants to
> use syntax-ppss on a CC Mode buffer?
It's used by various obscure packages like font-lock, newcomment, ...
>> Incidentally, AFAIK it's also the only code which uses
>> font-lock-extend-after-change-region-function ....
> Is that right? Well, what do you know! Still, it's a good facility to
> have around for when it's needed. It avoids the need to have to advise
> font-lock after change functions, whilst still doing fontification right.
Other packages manage to do it right without it.
As soon as CC-mode is changed to use syntax-propertize-function,
I expect that it won't use font-lock-extend-after-change-region-function
any longer.
> CC Mode does what it has to do to do its job. As you yourself, amongst
> others, have remarked, CC Mode deals with utter bastards of languages.
> Its caches are quite capable of being robust. I'm not convinced that
> syntax-ppss is capable of being robust. Some of its shortcomings are
> listed in syntax.el.
I don't think there's much point in comparing the track record of
caching bugs in syntax.el compared to cc-mode.
Stefan
This bug report was last modified 11 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.