GNU bug report logs - #16655
24.3.50; M-q on a command line does mix up commands and comments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Sebastien Vauban" <sva-news@HIDDEN>; dated Wed, 5 Feb 2014 16:24:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16655 <at> debbugs.gnu.org:


Received: (at 16655) by debbugs.gnu.org; 4 Feb 2016 21:00:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 04 16:00:58 2016
Received: from localhost ([127.0.0.1]:60686 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aRR1O-0002sW-Cl
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2016 16:00:58 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:43060)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <mbork@HIDDEN>) id 1aRR1M-0002sN-Ly
 for 16655 <at> debbugs.gnu.org; Thu, 04 Feb 2016 16:00:57 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 868AB9D2002;
 Thu,  4 Feb 2016 22:00:53 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ofhg8khqzXEZ; Thu,  4 Feb 2016 22:00:46 +0100 (CET)
Received: from localhost (unknown [109.232.24.28])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 5D7F09D2001;
 Thu,  4 Feb 2016 22:00:46 +0100 (CET)
From: Marcin Borkowski <mbork@HIDDEN>
To: "Sebastien Vauban" <sva-news@HIDDEN>
Subject: Re: bug#16655: 24.3.50;
 M-q on a command line does mix up commands and comments
References: <86fvnxa5tf.fsf@HIDDEN>
Date: Thu, 04 Feb 2016 22:00:42 +0100
In-Reply-To: <86fvnxa5tf.fsf@HIDDEN> (Sebastien Vauban's message of
 "Wed, 05 Feb 2014 17:21:32 +0100")
Message-ID: <87y4b0b37p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 16655
Cc: 16655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Hi all,

I'm writing to confirm that this is still present in GNU Emacs
25.1.50.1.  To make it a bit more precise: the OP means M-q with point
on either the 3rd line of the script (i.e., the line beginning with "#
display"), which works fine, and then M-q on the fourth line (i.e., the
line beginning with "echo"), which breaks as described below.

Best,
Marcin Borkowski


On 2014-02-05, at 17:21, "Sebastien Vauban" <sva-news@HIDDEN> wrote:

> Hello,
>
> With such a shell script file:
>
> #!/bin/sh
>
> # display symbol definitions, as found in the relevant manual (for AWK, C, Emacs Lisp, and other languages that have documentation in Info)
> echo Some text
>
>
> We can observe that:
>
> - `M-q' done on the first line will correctly refill the comment into
>   2 lines
>
>   # display symbol definitions, as found in the relevant manual (for AWK, C,
>   # Emacs Lisp, and other languages that have documentation in Info)
>   echo Some text
>
>
> - `M-q' done on the second line will completely break the code:
>
>   # display symbol definitions, as found in the relevant manual (for AWK, C,
>   Emacs Lisp, and other languages that have documentation in Info) echo Some text
>
> See http://screencast.com/t/XGs10gmz0m2.
>
> Best regards,
>   Seb
>
> In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
>  of 2013-10-19 on LEG570
> Bzr revision: 114715 rgm@HIDDEN
> Windowing system distributor `Microsoft Corp.', version 6.2.9200
> Configured using:
>  `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'
>
> Major mode: Shell-script




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16655; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Feb 2014 16:23:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 05 11:23:51 2014
Received: from localhost ([127.0.0.1]:51079 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WB5GQ-0001G1-5x
	for submit <at> debbugs.gnu.org; Wed, 05 Feb 2014 11:23:50 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48092)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sva-news@HIDDEN>) id 1WB5GM-0001Fp-No
 for submit <at> debbugs.gnu.org; Wed, 05 Feb 2014 11:23:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1WB5GH-0007iu-Fb
 for submit <at> debbugs.gnu.org; Wed, 05 Feb 2014 11:23:46 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:43374)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1WB5GH-0007io-Cc
 for submit <at> debbugs.gnu.org; Wed, 05 Feb 2014 11:23:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49800)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1WB5GC-00014d-Nq
 for bug-gnu-emacs@HIDDEN; Wed, 05 Feb 2014 11:23:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1WB5G8-0007hk-2W
 for bug-gnu-emacs@HIDDEN; Wed, 05 Feb 2014 11:23:36 -0500
Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:2349
 helo=mail.missioncriticalit.com)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sva-news@HIDDEN>) id 1WB5G7-0007hW-Rg
 for bug-gnu-emacs@HIDDEN; Wed, 05 Feb 2014 11:23:31 -0500
Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me
 (unknown [10.10.10.51])
 by mail.missioncriticalit.com (Postfix) with ESMTPS id 58D595009E8
 for <bug-gnu-emacs@HIDDEN>; Wed,  5 Feb 2014 17:26:15 +0100 (CET)
From: "Sebastien Vauban" <sva-news@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; M-q on a command line does mix up commands and comments
Organization: Sebastien Vauban
X-Url: Under construction...
X-Archive: encrypt
Date: Wed, 05 Feb 2014 17:21:32 +0100
Message-ID: <86fvnxa5tf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)

Hello,

With such a shell script file:

--8<---------------cut here---------------start------------->8---
#!/bin/sh

# display symbol definitions, as found in the relevant manual (for AWK, C, Emacs Lisp, and other languages that have documentation in Info)
echo Some text
--8<---------------cut here---------------end--------------->8---

We can observe that:

- `M-q' done on the first line will correctly refill the comment into
  2 lines

--8<---------------cut here---------------start------------->8---
  # display symbol definitions, as found in the relevant manual (for AWK, C,
  # Emacs Lisp, and other languages that have documentation in Info)
  echo Some text
--8<---------------cut here---------------end--------------->8---

- `M-q' done on the second line will completely break the code:

--8<---------------cut here---------------start------------->8---
  # display symbol definitions, as found in the relevant manual (for AWK, C,
  Emacs Lisp, and other languages that have documentation in Info) echo Some text
--8<---------------cut here---------------end--------------->8---

See http://screencast.com/t/XGs10gmz0m2.

Best regards,
  Seb

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-10-19 on LEG570
Bzr revision: 114715 rgm@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.2.9200
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

Major mode: Shell-script

-- 
Sebastien Vauban




Acknowledgement sent to "Sebastien Vauban" <sva-news@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16655; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 4 Feb 2016 21:15:02 UTC

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