summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2005-11-08 01:46:37 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2005-11-08 01:46:37 +0000
commit5a3859e6114e70fe8c393816a2381320b0357fb9 (patch)
tree6891d3f8cf9ff910365039cfa13fd0e467ba2fc3 /lisp/emacs-lisp
parent43d0ed81be9eb704d29444dd9c8acbbf2bd3cfaa (diff)
downloademacs-5a3859e6114e70fe8c393816a2381320b0357fb9.tar.gz
emacs-5a3859e6114e70fe8c393816a2381320b0357fb9.tar.bz2
emacs-5a3859e6114e70fe8c393816a2381320b0357fb9.zip
(lisp-mode-variables): Don't set comment-indent-function.
(lisp-comment-indent): Replace by an alias for comment-indent-default.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el16
1 files changed, 3 insertions, 13 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index b9a73218322..6dd5ffa217f 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -233,8 +233,6 @@
(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)
@@ -746,17 +744,9 @@ which see."
(unless (eq old-value new-value)
(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)
- (if (looking-at "\\s<\\s<")
- (let ((tem (or (calculate-lisp-indent) (current-column))))
- (if (listp tem) (car tem) tem))
- (skip-chars-backward " \t")
- (max (if (bolp) 0 (1+ (current-column)))
- comment-column))))
+
+;; May still be used by some external Lisp-mode variant.
+(define-obsolete-function-alias 'lisp-comment-indent 'comment-indent-default)
;; This function just forces a more costly detection of comments (using
;; parse-partial-sexp from beginning-of-defun). I.e. It avoids the problem of