bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1286: marked as done (comment-dwim on a comment line does not toggle


From: Emacs bug Tracking System
Subject: bug#1286: marked as done (comment-dwim on a comment line does not toggle comment)
Date: Fri, 31 Oct 2008 18:40:04 -0700

Your message dated Fri, 31 Oct 2008 21:33:32 -0400
with message-id <jwvabcknsf4.fsf-monnier+emacsbugreports@gnu.org>
and subject line Re: bug#1286: comment-dwim on a comment line does not toggle 
comment
has caused the Emacs bug report #1286,
regarding comment-dwim on a comment line does not toggle comment
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1286: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1286
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: comment-dwim on a comment line does not toggle comment Date: Fri, 31 Oct 2008 14:25:09 -0700
this appears to be like a bug.

in emacs-lisp-mode, if you have a comment like this:

;; This is a comment

and your cursor is somewhere on that line. Now, do comment-dwim, it doesn't uncomment the line. It just moves the cursor to the “T” in “This”.

Same behavior in cperl mode and probably all others.

I think this might be by design, but it seems counter-intuitive.

In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
 of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp

  Xah
∑ http://xahlee.org/

--- End Message ---
--- Begin Message --- Subject: Re: bug#1286: comment-dwim on a comment line does not toggle comment Date: Fri, 31 Oct 2008 21:33:32 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
> this appears to be like a bug.

> in emacs-lisp-mode, if you have a comment like this:

> ;; This is a comment

> and your cursor is somewhere on that line. Now, do comment-dwim, it doesn't
> uncomment the line. It just moves the cursor to the “T”  in “This”.

> Same behavior in cperl mode and probably all others.

> I think this might be by design, but it seems counter-intuitive.

This is the way M-; has worked for as long as I can remember.
It also re-indents the comment, if needed.  If you want to uncomment,
then select the line via e.g. C-a C-SPC C-n and then M-; will do what
you asked for.


        Stefan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]