all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#27112: Setting comment-continue to " " causes uncomment-region-default to infloop
@ 2017-05-28  6:27 Clément Pit--Claudel
  2017-05-30 22:23 ` npostavs
  0 siblings, 1 reply; 8+ messages in thread
From: Clément Pit--Claudel @ 2017-05-28  6:27 UTC (permalink / raw)
  To: 27112


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-05  0:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-28  6:27 bug#27112: Setting comment-continue to " " causes uncomment-region-default to infloop Clément Pit--Claudel
2017-05-30 22:23 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.