emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: [make-mode.el] Multi-line font locking not working correctly


From: Daniel Pfeiffer
Subject: Re: [make-mode.el] Multi-line font locking not working correctly
Date: Tue, 07 Jun 2005 20:35:27 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

la 07.06.2005 16:28 Richard Stallman skribis:

Of these five colons only the one before "x" is special. Without highlighting the multiline string assigned to var "b:c" looks like a rule, as does the last line. And prior to my rework, the colon in ${var:a=b} was also recognized as a rule separator.

That is a bug, but the behavior of the code I removed was simply
intolerable--a much worse bug.
It's a font-lock bug. Font-lock is documented as being poor on multiline constructs, irrespective of many file types which desperately need it. But I don't see where this is much worse! What happens is that fontification at the point where you are editing can get wrong. Turning it off and on again repairs it. I much prefer that, to having the file permanently wrong, as it was in the past.

Maybe we could have a timer based re-font-lock of edited sections?

Here's the original message.

From: Ralf Angeli <address@hidden>
To: address@hidden
Date: Mon, 30 May 2005 20:08:39 +0200
Subject: [make-mode.el] Multi-line font locking not working correctly

Suppose you want to type the following lines into a new Makefile:

FOO = bar \
        bar \
        bar

If you type everything by hand from top to bottom, as soon as <TAB> is
typed on the third line, fontification of the second line will
disappear.  Content typed in the third line will not be fontified
either.

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

--
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                             http://lernu.net/





reply via email to

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