GNU bug report logs - #21921
New function comment-line also comments first line after region

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sat, 14 Nov 2015 18:25:02 UTC

Severity: minor

Tags: notabug, wontfix

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Rasmus <rasmus <at> gmx.us>
Cc: 21921 <at> debbugs.gnu.org
Subject: bug#21921: New function comment-line also comments first line after region
Date: Mon, 16 Nov 2015 09:02:12 +0000
[Message part 1 (text/plain, inline)]
On 15 Nov 2015 11:45 am, "Rasmus" <rasmus <at> gmx.us> wrote:
> >
> > Yet pressing C-x C-; comments out all three lines. I find this second
example especially confusing.
> >
> > Is this behaviour only surprising to me?
>
> Perhaps the confusion is caused by region not being displayed at column
> zero.
>
> The behavior is correct IMO.
>
> For your particular examples, comment-dwim does what you want, it seems.
>
> Hope it helps,
> Rasmus

Indeed. When I was deciding how comment-line should work on a region, I
specifically chose to not make it identical to comment-dwim.

Maybe it should still treat the "region ends at a newline" case specially.
Some emacs commands do that already.
Not sure though, since that would be slightly redundant with comment-dwim.
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 44 days ago.

Previous Next


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