]> git.eshelyaron.com Git - emacs.git/commitdiff
(comment-normalize-vars): Initialize properly if comment-start was nil.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 25 Nov 2003 21:20:51 +0000 (21:20 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 25 Nov 2003 21:20:51 +0000 (21:20 +0000)
lisp/newcomment.el

index fb2cf480c0d0e250e7c57240c5fc045a0ee41f3a..7bd4465c9f29c51e547b65ab8bea18a4c6e80cf6 100644 (file)
@@ -224,10 +224,10 @@ terminated by the end of line (i.e. `comment-end' is empty)."
 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)