emacs-devel
[Top][All Lists]
Advanced

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

Re: longlines-mode: font-lock fails (in outline-mode)


From: David Reitter
Subject: Re: longlines-mode: font-lock fails (in outline-mode)
Date: Thu, 30 Jun 2005 00:38:21 +0100

Chong Yidong wrote:

Only the "New translations... in the" part is highlighted. If this is not a problem, neither should it be a problem when longlines-mode is turned
on.\

I can't quite agree: if you have a soft-newline, that means that the headline (to be marked) continues in the next line. The user has not pressed return! It's like a normal line-wrap. The syntax highlighting should take into account what the compiler (eventually) gets to see (in the case of source code) or what gets written to file.

Given that longlines-mode shows that kind of behavior in other major modes as well (e.g. python mode - i reported a bug recently), I think that Richard's suggestion about making '.' match soft-newlines might be a good idea and a general solution to this class of problems. One would obviously want to make sure that the newlines-indicator (I don't know how this is implemented) is unique so that the change of regexp matching doesn't have knock-on effects in other contexts.

-D




reply via email to

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