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

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

bug#27112: Setting comment-continue to " " causes uncomment-region-defau


From: Clément Pit--Claudel
Subject: bug#27112: Setting comment-continue to " " causes uncomment-region-default to infloop
Date: Tue, 30 May 2017 19:02:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 2017-05-30 18:23, npostavs@users.sourceforge.net wrote:
> Clément Pit--Claudel <clement.pitclaudel@live.com> writes:
> 
>> Setting comment-continue to " " breaks the logic of
>> uncomment-region-default, causing it to get into an infinite loop
>> (repeatedly matching an empty string at the same location).
>> uncomment-region-default is used by comment-line (C-x C-;).
> 
> Can you give a full recipe?

Sure thing:

emacs -Q --eval '(setq comment-continue "  ")' --eval '(save-excursion (insert 
";; AAA\n"))' --eval '(comment-line 1)'

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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