GNU bug report logs - #63761
PATCH: Add commands for commenting/uncommenting rectangles

Previous Next

Package: emacs;

Reported by: Okamsn <okamsn <at> protonmail.com>

Date: Sat, 27 May 2023 22:07:01 UTC

Severity: wishlist

Tags: patch

To reply to this bug, email your comments to 63761 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#63761; Package emacs. (Sat, 27 May 2023 22:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Okamsn <okamsn <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 27 May 2023 22:07:01 GMT) Full text and rfc822 format available.

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

From: Okamsn <okamsn <at> protonmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: PATCH: Add commands for commenting/uncommenting rectangles
Date: Sat, 27 May 2023 22:06:20 +0000
[Message part 1 (text/plain, inline)]
Hello,

This patch adds commands for commenting rectangles and modifies 
`comment-dwim` to use them. This is useful, for example, for commenting 
out the middles of consecutive lines, for which `comment-region` 
wouldn't work. It does this by calling `comment-region` or 
`uncomment-region` on each segment within the rectangle. With this patch,

	word1 word2 word3
	word4 word5 word6

would become

	word1 /* word2 */ word3
	word4 /* word5 */ word6

instead of

	word1 /* word2 word3
	word4 word5 */ word6

as produced by `comment-region` when using `rectangle-mark-mode`.

Thank you.
[0001-Add-commands-for-commenting-uncommenting-non-contigu.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 19:30:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 19:30:02 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 350 days ago.

Previous Next


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