changeset 62363:6a0ab1c93beb

(lisp-mode-variables): Set font-lock-comment-start-skip.
author Richard M. Stallman <rms@gnu.org>
date Sun, 15 May 2005 14:29:25 +0000
parents ebcb47e6b3f3
children 55c2e9c1c3cb
files lisp/emacs-lisp/lisp-mode.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el	Sun May 15 14:28:55 2005 +0000
+++ b/lisp/emacs-lisp/lisp-mode.el	Sun May 15 14:29:25 2005 +0000
@@ -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)