all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: longlines-mode: font-lock fails (in outline-mode)
@ 2005-06-29 23:38 David Reitter
  0 siblings, 0 replies; 3+ messages in thread
From: David Reitter @ 2005-06-29 23:38 UTC (permalink / raw)
  Cc: cyd

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-29 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <C89C5C51-0CD1-47B1-91DD-DD38749F14EF@gmail.com>
     [not found] ` <E1DmwkF-0005HF-OH@fencepost.gnu.org>
     [not found]   ` <F95FE268-D989-45BC-AFDB-3BA9FBB912ED@gmail.com>
2005-06-28 18:46     ` longlines-mode: font-lock fails (in outline-mode) Richard M. Stallman
2005-06-29  2:36       ` Chong Yidong
2005-06-29 23:38 David Reitter

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.