Subject: comment-dwim on a comment line does not toggle comment

From: xah lee <[email-masked]>
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/

☄