Fix for uncommentin in Fundamental mode.

* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.

Fixes: debbugs:8424
This commit is contained in:
Chong Yidong 2011-09-18 14:10:01 -04:00
parent c02dcedf1b
commit d473dce830
2 changed files with 7 additions and 1 deletions

View 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.

View 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)