From unknown Mon Jun 16 23:47:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5437 <5437@debbugs.gnu.org> To: bug#5437 <5437@debbugs.gnu.org> Subject: Status: C-q reformat and Autofill error Reply-To: bug#5437 <5437@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:47:43 +0000 retitle 5437 C-q reformat and Autofill error reassign 5437 emacs submitter 5437 Jayson Williams severity 5437 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 12:03:15 2010 Received: (at submit) by debbugs.gnu.org; 21 Jan 2010 17:03:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NY0R8-0004Mi-OC for submit@debbugs.gnu.org; Thu, 21 Jan 2010 12:03:15 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NY0Hh-0004I7-Tn for submit@debbugs.gnu.org; Thu, 21 Jan 2010 11:53:30 -0500 Received: from mx10.gnu.org ([199.232.76.166]:55302) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NY0Gf-00025L-Ud for submit@debbugs.gnu.org; Thu, 21 Jan 2010 11:53:25 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NY0GE-00008m-VA for submit@debbugs.gnu.org; Thu, 21 Jan 2010 11:52:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:56996) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NY0GE-00008f-PQ for submit@debbugs.gnu.org; Thu, 21 Jan 2010 11:51:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NY0GE-0005Gy-0z for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 11:51:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NY0G9-0005Ga-Uv for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 11:51:57 -0500 Received: from [199.232.76.173] (port=49055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NY0G9-0005GX-MZ for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 11:51:53 -0500 Received: from mail-fx0-f212.google.com ([209.85.220.212]:45699) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NY0Fo-0008Uk-Co for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 11:51:53 -0500 Received: by fxm4 with SMTP id 4so203568fxm.32 for ; Thu, 21 Jan 2010 08:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=gDUF/spYykPJ0T8SULvqMz2nB7htt03f7nW0sUAE1F0=; b=g/N92qEvFEzEObgKHwFQgE4MWbNWz2JqDA2ca3GE91+vG4qzXWcAoLZXCFXS59WtES qhdUg9zjSz7NUrlBaiqlC04E0qgKjyyEo9hi6jJYFhKOVLpfFoMY6SKNUOB+GXHcaBWo PxqHHKG9Ct2103Ctz+z8xHXWsyNZ844B+VMAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hjDTVTy+HJNHucjKKCGlT6V71hDJlY2wUJzh/l1/+VdgJtMol4BCo931n0fn6ehNbR wlxYVGHVP5cmHs2ZFtep9+HD8QqwkLdcRU3P/M4tNrq15k0ICbMgk9JGz0S7DeJ7KDKK rqgPCi1DoCEIS+fnlH9nzkQ94U+Uu9OWkXfH0= MIME-Version: 1.0 Received: by 10.223.14.20 with SMTP id e20mr1700538faa.16.1264092654396; Thu, 21 Jan 2010 08:50:54 -0800 (PST) Date: Thu, 21 Jan 2010 11:50:54 -0500 Message-ID: <8bd354bf1001210850i229a8be5r6522dd7372946674@mail.gmail.com> Subject: C-q reformat and Autofill error From: Jayson Williams To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 21 Jan 2010 12:03:13 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 11:41:35 2010 Received: (at 5437) by debbugs.gnu.org; 22 Jan 2010 16:41:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYMZi-0000Pv-NB for submit@debbugs.gnu.org; Fri, 22 Jan 2010 11:41:34 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYMZh-0000Pn-82 for 5437@debbugs.gnu.org; Fri, 22 Jan 2010 11:41:33 -0500 Received: from furry (dhcp128036014123.central.yale.edu [128.36.14.123]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0MGfS7d009931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 22 Jan 2010 11:41:28 -0500 Received: by furry (Postfix, from userid 1000) id 80ADCC05D; Fri, 22 Jan 2010 09:41:28 -0700 (MST) From: Chong Yidong To: Jayson Williams Subject: Re: C-q reformat and Autofill error Date: Fri, 22 Jan 2010 11:41:28 -0500 Message-ID: <87d412ks7b.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5437 Cc: 5437@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 11:42:26 2010 Received: (at control) by debbugs.gnu.org; 22 Jan 2010 16:42:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYMaX-0000QV-Vr for submit@debbugs.gnu.org; Fri, 22 Jan 2010 11:42:26 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYMaW-0000QQ-NX for control@debbugs.gnu.org; Fri, 22 Jan 2010 11:42:24 -0500 Received: from furry (dhcp128036014123.central.yale.edu [128.36.14.123]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0MGgKqA010136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 22 Jan 2010 11:42:20 -0500 Received: by furry (Postfix, from userid 1000) id 290A7C05D; Fri, 22 Jan 2010 09:42:20 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5437 Date: Fri, 22 Jan 2010 11:42:20 -0500 Message-ID: <87aaw6ks5v.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) close 5437 thanks From unknown Mon Jun 16 23:47:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 Feb 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator