[Top][All Lists]

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

Re: cc-mode fontification feels random

From: martin rudalics
Subject: Re: cc-mode fontification feels random
Date: Sun, 13 Jun 2021 16:52:11 +0200

> But looking summarily at the code it doesn't seem to be
> "unconditionally" at all.  There are four different conditions that have
> to be cumulatively verified before that invocation of syntax-ppss takes
> place.

I think you're right - it seems to end up in "same-line".  The two
`line-beginning-position' calls and the `copy-marker' are gratuitous
though.  This should become a minor mode and crowd `post-command-hook'
only if enabled - otherwise you needlessly punish electric users.  And
it should be documented somewhere.

> I didn't know it was customizbale (or rather didn't bother to check, I
> admit).  But again, I seem to remember that customizing it back to nil
> wasn't an option and that Emacs would break.  Maybe that has changed?
> Is it really truly optional?



reply via email to

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