* Emacs 22.0.50: Problem with Longlines mode and left margin
@ 2005-10-20 20:52 Alan Mackenzie
2005-10-21 9:54 ` Miles Bader
0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2005-10-20 20:52 UTC (permalink / raw)
Hi, Emacs!
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
. However, type any character (or delete any character) anywhere in this
paragraph, and it snaps back to the margin-violating version.
Longlines's filling and M-q are incompatible here. I think that it is
Longlines's filling which is at fault.
--
Alan Mackenzie (Munich, Germany)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Emacs 22.0.50: Problem with Longlines mode and left margin
2005-10-20 20:52 Emacs 22.0.50: Problem with Longlines mode and left margin Alan Mackenzie
@ 2005-10-21 9:54 ` Miles Bader
0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2005-10-21 9:54 UTC (permalink / raw)
Cc: emacs-devel
2005/10/21, Alan Mackenzie <acm@muc.de>:
> . However, type any character (or delete any character) anywhere in this
> paragraph, and it snaps back to the margin-violating version.
>
> Longlines's filling and M-q are incompatible here. I think that it is
> Longlines's filling which is at fault.
Arguably, the longlines version more accurately represents the real text.
Remember, when a buffer with longlines active gets written to a file
or copied or whatever, the text from each displayed paragraph will be
"unfilled" and glommed onto one long line, so it's impossible to
represent a non-zero left margin anyplace except at the beginning of
the paragraph.
Because of this, maybe longlines should try to force normal filling
commands to not ever create a non-zero left-margin while it's
active....
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-21 9:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 20:52 Emacs 22.0.50: Problem with Longlines mode and left margin Alan Mackenzie
2005-10-21 9:54 ` Miles Bader
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).