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

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

`comment-dwim' leaves ;; in strings when uncommenting


From: Oliver Scholz
Subject: `comment-dwim' leaves ;; in strings when uncommenting
Date: Wed, 14 Jul 2004 12:52:18 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt)

Here's a recipe to reproduce the bug in CVS Emacs, starting from -q
--no-site-file. Eval this:

(progn (switch-to-buffer (generate-new-buffer "*tmp*"))
       (emacs-lisp-mode)
       (set (make-local-variable 'transient-mark-mode)
            t)
       (insert "\"lirum larum\nlirum larum\nlirum larum\"")
       ;; Comment everything out.
       (comment-region (point-min) (point-max)))

Then type `C-x h M-;' (`comment-dwim' called with the active region
covering the whole buffer).

As you see the comment chars inside the string are left.  This is
very annoying, because it also affects, for example, doc strings in
Lisp functions.


    Oliver
-- 
Oliver Scholz               27 Messidor an 212 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org




reply via email to

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