emacs-devel
[Top][All Lists]
Advanced

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

Re: Longlines mode in menu


From: Chong Yidong
Subject: Re: Longlines mode in menu
Date: Thu, 12 Jun 2008 11:05:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

David Reitter <address@hidden> writes:

> Are you aware that syntax hightlighting is broken with longlines mode?
> Any (line-based) comments, e.g. in LaTeX, will make it fail.
>
> When you comment out formulae in LaTeX and they get wrapped in middle,
> parsing fails with consequences for the remainder of the
> buffer. E.g.,:
>
> %  \begin{quote}
> %  $P_e(N_i|C_j)$  is empirically defined as  $F(N_i \&
> C_j)/F(C_j)$,
> % where $F(N_i \& C_j)$  is the number of times $i$ is needed
>
> It seems that syntax highlighting does not know about soft and hard
> line breaks.
>
> Are there any news on the display-time word wrapping patch by Kim
> Storm?  Back then when he posted the first incarnation, things almost
> worked as intended.

The display-time work wrapping won't necessarily help.  It would
interfere with commands that expect soft newlines to behave like
newlines (next-line, etc).

One way to fix this might be to selectively bind search-spaces-regexp
during font-lock, if longlines mode is on.




reply via email to

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