changeset 63764:9c5c3700b037

(lisp-mode-variables): Bind comment-indent-function locally.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Jun 2005 14:10:23 +0000
parents 121f7f14ce00
children d30261824cd5
files lisp/emacs-lisp/lisp-mode.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el	Sat Jun 25 14:09:07 2005 +0000
+++ b/lisp/emacs-lisp/lisp-mode.el	Sat Jun 25 14:10:23 2005 +0000
@@ -202,6 +202,8 @@
   (setq comment-column 40)
   ;; Don't get confused by `;' in doc strings when paragraph-filling.
   (set (make-local-variable 'comment-use-global-state) t)
+  (make-local-variable 'comment-indent-function)
+  (setq comment-indent-function 'lisp-comment-indent)
   (make-local-variable 'imenu-generic-expression)
   (setq imenu-generic-expression lisp-imenu-generic-expression)
   (make-local-variable 'multibyte-syntax-as-symbol)
@@ -714,7 +716,7 @@
 	       (setq debug-on-error new-value))
 	     value)))))
 
-
+;; Used for comment-indent-function in Lisp modes.
 (defun lisp-comment-indent ()
   (if (looking-at "\\s<\\s<\\s<")
       (current-column)