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

Previous Next

Package: emacs;

Reported by: "Sebastien Vauban" <sva-news <at> mygooglest.com>

Date: Wed, 5 Feb 2014 16:24:02 UTC

Severity: minor

Tags: confirmed

Found in versions 25.1, 24.3.50, 26.1

To reply to this bug, email your comments to 16655 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16655; Package emacs. (Wed, 05 Feb 2014 16:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Sebastien Vauban" <sva-news <at> mygooglest.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 05 Feb 2014 16:24:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Sebastien Vauban" <sva-news <at> mygooglest.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; M-q on a command line does mix up commands and comments
Date: Wed, 05 Feb 2014 17:21:32 +0100
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 <at> gnu.org-20131019023520-s8mwtib7xcx9e05w
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16655; Package emacs. (Thu, 04 Feb 2016 21:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 16655 <at> debbugs.gnu.org (full text, mbox):

From: Marcin Borkowski <mbork <at> mbork.pl>
To: "Sebastien Vauban" <sva-news <at> mygooglest.com>
Cc: 16655 <at> debbugs.gnu.org
Subject: Re: bug#16655: 24.3.50;
 M-q on a command line does mix up commands and comments
Date: Thu, 04 Feb 2016 22:00:42 +0100
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 <at> mygooglest.com> 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 <at> gnu.org-20131019023520-s8mwtib7xcx9e05w
> 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 <at> gnu.org:
bug#16655; Package emacs. (Thu, 26 Sep 2019 12:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 16655 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 16655 <at> debbugs.gnu.org
Subject: Re: bug#16655: 24.3.50; M-q on a command line does mix up commands
 and comments
Date: Thu, 26 Sep 2019 14:55:15 +0200
tags 16655 + confirmed
found 16655 25.1
found 16655 26.1
quit

Marcin Borkowski <mbork <at> mbork.pl> 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




Added tag(s) confirmed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2019 12:56:03 GMT) Full text and rfc822 format available.

bug Marked as found in versions 25.1. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2019 12:56:03 GMT) Full text and rfc822 format available.

bug Marked as found in versions 26.1. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2019 12:56:03 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2019 13:02:02 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 261 days ago.

Previous Next


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