GNU bug report logs -
#5437
C-q reformat and Autofill error
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5437 in the body.
You can then email your comments to 5437 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5437
; Package
emacs
.
(Thu, 21 Jan 2010 17:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jayson Williams <williams.jayson <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 21 Jan 2010 17:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I am using GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version
2.18.0) of 2009-09-27 on palmer, modified by Debian.
I believe I have found a minor bug in how M-q and auto-fill-mode
reformat certain lines.
In the following scenario, when in auto-fill-mode, and where multiple
lines of text are typed that trigger auto fill (for example)
The quick brown fox jumped over the lazy dogs back. The quick brown
fox jumped over the lazy dogs back. The quick brown fox jumped over
the lazy dogs back. The quick brown fox jumped over the lazy dogs
back.
When I edit the beginning of the first line with an "-" character, and
reformat using M-q, I expected all the lines to be indented, like
below.
original text edited, and before M-q:
- The quick brown fox jumped over the lazy dogs back. The quick brown
fox jumped over the lazy dogs back. The quick brown fox jumped over
the lazy dogs back. The quick brown fox jumped over the lazy dogs
back.
after M-q
- The quick brown fox jumped over the lazy dogs back. The quick brown
fox jumped over the lazy dogs back. The quick brown fox jumped over
the lazy dogs back. The quick brown fox jumped over the lazy dogs
back.
Instead, after adding the '-' at the beginning, and reformatting with
M-q, what I get is normal wrapping of the text that looks like this.
- The quick brown fox jumped over the lazy dogs back. The quick brown
fox jumped over the lazy dogs back. The quick brown fox jumped over
the lazy dogs back. The quick brown fox jumped over the lazy dogs
back.
This appears to be a bug, because it only seems to happens when the
first line of the text is edited after the fact. If I include the '-'
character when I first start typing the multiple lines, I get the
indented wrapping that I expected. Additionally if I join the lines
back together, and then type M-q, I get the expected indented
wrapping.
Hope that made enough sense. Please let me know if I can clarify any
further, or if this is in fact not a bug.
VR
Jayson
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5437
; Package
emacs
.
(Fri, 22 Jan 2010 16:42:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 5437 <at> debbugs.gnu.org (full text, mbox):
> When I edit the beginning of the first line with an "-" character, and
> reformat using M-q, I expected all the lines to be indented
>
> Instead, after adding the '-' at the beginning, and reformatting with
> M-q, what I get is normal wrapping of the text
>
> This appears to be a bug, because it only seems to happens when the
> first line of the text is edited after the fact. If I include the '-'
> character when I first start typing the multiple lines, I get the
> indented wrapping that I expected. Additionally if I join the lines
> back together, and then type M-q, I get the expected indented
> wrapping.
This is not a bug, it's part of the indentation logic. Emacs has no way
of knowing whether you intend to indent like this:
- foo goo...
bar baz...
or like this:
- foo goo...
bar baz...
Clearly, each indentation could be valid under different circumstances,
and Emacs must not impose one single choice when M-q is typed.
So, if you start out with a long line that is not already indented, it
will try option 2. But if you start out with either choice, it will
stick with that choice.
bug closed, send any further explanations to Jayson Williams <williams.jayson <at> gmail.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Fri, 22 Jan 2010 16:43:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 20 Feb 2010 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 119 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.