GNU bug report logs - #1286
comment-dwim on a comment line does not toggle comment

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Fri, 31 Oct 2008 21:35:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: xah lee <xah <at> xahlee.org>
Cc: 1286 <at> debbugs.gnu.org, Xavier Maillard <xma <at> gnu.org>,
        bug-gnu-emacs <at> gnu.org, bug-submit-list <at> donarmstrong.com
Subject: bug#1286: comment-dwim on a comment line does not toggle comment
Date: Tue, 04 Nov 2008 11:34:33 -0500
> when a cursor is on a comment line (whole line is comment) and there's no
> active region, i don't see any reason it shouldn't just uncomment the line
> when calling comment-dwim. I would say that, any  person, including those

I, on the other hand, don't see why it should do that.  What would be
the logic behind it?  And according to that logic what should it do if
the line contains a comment as well as some code?

As explained, the M-; behavior you're seeing has been with us for many
many years, so there needs to be a good reason for the change (and the
previous behavior of inserting a comment marker and/or reindenting
a preexisting comment marker, should still be available somewhere).


        Stefan






This bug report was last modified 16 years and 203 days ago.

Previous Next


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