bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16655: 24.3.50; M-q on a command line does mix up commands and comme


From: Stefan Kangas
Subject: 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@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]