From: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
To: 27112@debbugs.gnu.org
Subject: bug#27112: Setting comment-continue to " " causes uncomment-region-default to infloop
Date: Sun, 28 May 2017 02:27:39 -0400 [thread overview]
Message-ID: <bc58a9c0-e8c0-0c38-175a-25f57b4ed05f@live.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 647 bytes --]
Hi all,
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-;).
Setting comment-continue to " " could be a mistake, in which case this bug is a request to document the limitation :) Or it may be a valid value, in which case uncomment-region-default is broken.
The original context was comments like in a major mode that I'm writing, for which setting comment-continue to " " seem(s/ed) reasonable.
/* AAA
BBB
CCC */
Cheers,
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2017-05-28 6:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-28 6:27 Clément Pit--Claudel [this message]
2017-05-30 22:23 ` bug#27112: Setting comment-continue to " " causes uncomment-region-default to infloop npostavs
2017-05-30 23:02 ` Clément Pit--Claudel
2017-06-02 3:18 ` npostavs
2017-06-10 2:15 ` npostavs
2017-07-03 15:36 ` npostavs
2017-07-03 15:41 ` Clément Pit--Claudel
2017-07-05 0:08 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc58a9c0-e8c0-0c38-175a-25f57b4ed05f@live.com \
--to=clement.pitclaudel@live.com \
--cc=27112@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).