bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#5437: C-q reformat and Autofill error


From: Jayson Williams
Subject: bug#5437: C-q reformat and Autofill error
Date: Thu, 21 Jan 2010 11:50:54 -0500

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







reply via email to

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