all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jayson Williams <williams.jayson@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5437: C-q reformat and Autofill error
Date: Thu, 21 Jan 2010 11:50:54 -0500	[thread overview]
Message-ID: <8bd354bf1001210850i229a8be5r6522dd7372946674@mail.gmail.com> (raw)

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	other threads:[~2010-01-21 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 16:50 Jayson Williams [this message]
2010-01-22 16:41 ` bug#5437: C-q reformat and Autofill error Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8bd354bf1001210850i229a8be5r6522dd7372946674@mail.gmail.com \
    --to=williams.jayson@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.