emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: Emacs 22.0.50: Problem with Longlines mode and left


From: Alan Mackenzie
Subject: Re: address@hidden: Emacs 22.0.50: Problem with Longlines mode and left margin]
Date: Fri, 21 Oct 2005 21:18:21 +0000 (GMT)


On Fri, 21 Oct 2005, Chong Yidong wrote:

>> In a fresh buffer, set up a non-null left margin, e.g. with M-: (setq
>> left-margin 3).  Enable Longlines Mode.

>> Start typing a line of text, starting with three spaces.  When the text
>> fills onto the next (soft) line, Longlines disregards the left margin,
>> and text accumulates from column 0, like this:

>>    Text starting from the margin overflows
>> into column 0

>> .  Fill the paragraph with M-q.  It now appears to respect the margin
>> setting:

>>    Text starting from the margin overflows
>>    into column 0

>The longlines-mode idiom is that one soft newline is equivalent to one
>space.  I'm very reluctant to make longlines-mode aware of left-margin,
>because that would violate this simple rule.  For example, after you
>turn off longlines mode, the above line would be "unwrapped" and turn
>into

>>    Text starting from the margin overflows    into column 0

>which is obviously not what the user has in mind.

Sorry.  I hadn't thought the problem through properly.  A left margin
doesn't seem to make much sense with long lines.

>How about if turning on longlines-mode sets left-margin to zero
>for the buffer?

Yes.  Or, even, the filling code could ignore the left-margin whilst
Longlines Mode is enabled.

-- 
Alan Mackenzie (Munich, Germany)






reply via email to

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