Fix for uncommentin in Fundamental mode.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 18 Sep 2011 18:10:01 +0000 (14:10 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 18 Sep 2011 18:10:01 +0000 (14:10 -0400)
* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.

Fixes: debbugs:8424

lisp/ChangeLog
lisp/newcomment.el

index a08e8c2..459e360 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * newcomment.el (comment-normalize-vars): If prompting for
+       comment-start, set comment-start-skip too (Bug#8424).
+
 2011-09-18  Johan Bockgård  <bojohan@gnu.org>
 
        * icomplete.el: Fix previous fix of Bug#5849.
index 8c0d7b2..3f2338b 100644 (file)
@@ -316,7 +316,8 @@ the variables are properly set."
       (let ((cs (read-string "No comment syntax is defined.  Use: ")))
        (if (zerop (length cs))
            (error "No comment syntax defined")
-         (set (make-local-variable 'comment-start) cs))))
+         (set (make-local-variable 'comment-start) cs)
+         (set (make-local-variable 'comment-start-skip) cs))))
     ;; comment-use-syntax
     (when (eq comment-use-syntax 'undecided)
       (set (make-local-variable 'comment-use-syntax)