changeset 53164:2ea1aaf0d7db

(comment-normalize-vars): Initialize properly if comment-start was nil.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 25 Nov 2003 21:20:51 +0000
parents edb49454fb8c
children 3ed6838ea39f
files lisp/newcomment.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/newcomment.el	Tue Nov 25 14:45:32 2003 +0000
+++ b/lisp/newcomment.el	Tue Nov 25 21:20:51 2003 +0000
@@ -224,10 +224,10 @@
 Functions autoloaded from newcomment.el, being entry points, should call
 this function before any other, so the rest of the code can assume that
 the variables are properly set."
-  (if (not comment-start)
-      (unless noerror
-	(set (make-local-variable 'comment-start)
-	     (read-string "No comment syntax is defined.  Use: ")))
+  (unless (and (not comment-start) noerror)
+    (unless comment-start
+      (set (make-local-variable 'comment-start)
+	   (read-string "No comment syntax is defined.  Use: ")))
     ;; comment-use-syntax
     (when (eq comment-use-syntax 'undecided)
       (set (make-local-variable 'comment-use-syntax)