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; Severity: minor; Reported by: "Sebastien Vauban" <sva-news@HIDDEN>; Keywords: confirmed; dated Wed, 5 Feb 2014 16:24:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 26.1. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 25.1. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 16655) by debbugs.gnu.org; 26 Sep 2019 12:55:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 26 08:55:35 2019
Received: from localhost ([127.0.0.1]:42918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iDTJ1-00073A-2S
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2019 08:55:35 -0400
Received: from mail-pf1-f176.google.com ([209.85.210.176]:46778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1iDTIz-00072x-BV
 for 16655 <at> debbugs.gnu.org; Thu, 26 Sep 2019 08:55:33 -0400
Received: by mail-pf1-f176.google.com with SMTP id q5so1766051pfg.13
 for <16655 <at> debbugs.gnu.org>; Thu, 26 Sep 2019 05:55:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
 bh=AzXb/LAE849bcy/ya3sAIwn3OWOL7UoC32PHVC9ir/c=;
 b=JN4WT2j+xF4AhCsIWnC7vHlo38wUGKzGPlvoyRZoHhdHls9G7Lpgutq1mgPQidIIcA
 /HwIoB0ZcTDfMu0K5jkcQqPj2P07gOMZFxFuaVgsUTEcVglja7ACz47VRZ3eSTw00R8Z
 2K88wfLvpRXnNi4bxRJ0XMg/HOXur/D71rPv6adMhYN1ijmfGYVYrDZpZlvIk5E+4aOu
 HxfgsswNNeCvauERiuWRQgPRz+VUKS+A0/71ugKTQdX0Ga9uti+VEzCVRg8aVoohf9b0
 Ft/QFNEgY1TtinHkKxI1ZIL7JBMj7mnYj3woAssXTuvZirw3AgPMyHZbRpyXggh7fQnp
 bIoA==
X-Gm-Message-State: APjAAAVyMGmWxf9xbQ4pr4YTkUth5iV2n15SmvErKrA8Y7QXNFvF+B53
 /oCGbqhbixLOcoE3smH3Cz52MrHuPdYr60YYV8oGRsc6/Is=
X-Google-Smtp-Source: APXvYqzOBPLSByzoYzBU1Oc0A4SAoefPe86iaFypZK/eVsKN/3PPxxujusl8OPvsaiUrcq2G5cuuYInEc0jQAwajFv8=
X-Received: by 2002:a17:90b:8d1:: with SMTP id
 ds17mr3505795pjb.106.1569502526630; 
 Thu, 26 Sep 2019 05:55:26 -0700 (PDT)
MIME-Version: 1.0
From: Stefan Kangas <stefan@HIDDEN>
Date: Thu, 26 Sep 2019 14:55:15 +0200
Message-ID: <CADwFkmmXPWx9EPZ35+ZHV7sDTYNY9Tks=eJ-MvZSUt_C4bA_Bw@HIDDEN>
Subject: Re: bug#16655: 24.3.50; M-q on a command line does mix up commands
 and comments
To: Marcin Borkowski <mbork@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
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.7 (/)

tags 16655 + confirmed
found 16655 25.1
found 16655 26.1
quit

Marcin Borkowski <mbork@HIDDEN> writes:

> 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.
[...]
>> 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.

I can reproduce this on Emacs 26.1 and current master.

Best regards,
Stefan Kangas




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

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: Mon, 25 Nov 2019 12:00:02 UTC

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