emacs-devel
[Top][All Lists]
Advanced

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

Re: Turn on longlines in text modes [patch]


From: David Reitter
Subject: Re: Turn on longlines in text modes [patch]
Date: Tue, 19 Jul 2005 12:12:14 +0100

On 19 Jul 2005, at 06:39, Chong Yidong wrote:

Just a note: longlines mode should not be used with auto-fill-mode on. In
fact, longlines-mode explicitly turns off auto-fill-mode.

Seems logical. But if it does so, shouldn't it turn it back on then (i.e. to the previous value) when it's deactivated?
At least when text-mode-auto-fill is on...

The reason longlines-wrap-follows-window-size is nil by default is that it
can produce unexpected behavior when the buffer is simultaneously
displayed in two windows with different widths. Longlines will wrap using the width of one of the windows, and the results will look strange in the other window. There doesn't seem to be an easy way out of this, as far as
I know.

In addition to what David K suggested, it might be possible to just wrap the text to the smallest of all window widths. That's not the ideal solution, but still better than just wrapping all text to some arbitrarily predefined line length by default.

By the way: longlines-mode (with longlines-wrap-follows-window-size) seems to wrap to early when using a variable-width font. Since variable-width fonts are predominantly used in text (as opposed to code) writing contexts, and that's where longlines-mode plays an important role, it might be a good idea to think about a fix.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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