GNU bug report logs - #5437
C-q reformat and Autofill error

Previous Next

Package: emacs;

Reported by: Jayson Williams <williams.jayson <at> gmail.com>

Date: Thu, 21 Jan 2010 17:04:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jayson Williams <williams.jayson <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
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





This bug report was last modified 15 years and 120 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.