Subject: bug#1286 closed by Stefan Monnier <[email-masked]> (Re: bug#1286: comment-dwim on a comment line does not toggle comment)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1286: comment-dwim on a comment line does not toggle comment

It has been closed by Stefan Monnier <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <[email-masked]> by
replying to this email.

-- 
1286: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1286
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Fri Oct 31 18:33:46 2008
From: Stefan Monnier <[email-masked]>
To: xah lee <[email-masked]>
Cc: [email-masked]
Subject: Re: bug#1286: comment-dwim on a comment line does not toggle comment
Date: Fri, 31 Oct 2008 21:33:32 -0400

> 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 =E2=80=9CT=E2=80=9D  =
in =E2=80=9CThis=E2=80=9D.

> 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

>From [email-masked] Fri Oct 31 14:25:35 2008
To: [email-masked]
From: xah lee <[email-masked]>
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 =20
doesn't uncomment the line. It just moves the cursor to the =E2=80=9CT=E2=80=
=9D =20
in =E2=80=9CThis=E2=80=9D.

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
=E2=88=91 http://xahlee.org/

=E2=98=84