summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mode.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-05-15 14:29:25 +0000
committerRichard M. Stallman <rms@gnu.org>2005-05-15 14:29:25 +0000
commit76f414790d67bd33f412e1e1b3f29a96706b8c4b (patch)
treeef2fc35a458c1b56b75ab035a3d1369d3e70509a /lisp/emacs-lisp/lisp-mode.el
parent7435a76be7a6dd9f09c777b68a33024a2dc48867 (diff)
downloademacs-76f414790d67bd33f412e1e1b3f29a96706b8c4b.tar.gz
emacs-76f414790d67bd33f412e1e1b3f29a96706b8c4b.tar.bz2
emacs-76f414790d67bd33f412e1e1b3f29a96706b8c4b.zip
(lisp-mode-variables): Set font-lock-comment-start-skip.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 8f4245cb9a1..bb815481bf0 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -192,6 +192,9 @@
;; Look within the line for a ; following an even number of backslashes
;; after either a non-backslash or the line beginning.
(setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")
+ (make-local-variable 'font-lock-comment-start-skip)
+ ;; Font lock mode uses this only when it KNOWS a comment is starting.
+ (setq font-lock-comment-start-skip ";+ *")
(make-local-variable 'comment-add)
(setq comment-add 1) ;default to `;;' in comment-region
(make-local-variable 'comment-column)