mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(comment-normalize-vars): Check the user-specified comment start marker.
This commit is contained in:
parent
aa83be2adf
commit
31df2900a4
1 changed files with 4 additions and 2 deletions
|
|
@ -251,8 +251,10 @@ this function before any other, so the rest of the code can assume that
|
|||
the variables are properly set."
|
||||
(unless (and (not comment-start) noerror)
|
||||
(unless comment-start
|
||||
(set (make-local-variable 'comment-start)
|
||||
(read-string "No comment syntax is defined. Use: ")))
|
||||
(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))))
|
||||
;; comment-use-syntax
|
||||
(when (eq comment-use-syntax 'undecided)
|
||||
(set (make-local-variable 'comment-use-syntax)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue