aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-19 19:35:09 +0000
committerStefan Monnier2008-04-19 19:35:09 +0000
commite80591ba8dbd3521605c9adb4c4bbae7e35e5aa8 (patch)
treeb44daa75ad5d9a31158f6ed3b60dfc4e3a9771d7
parentece5f84750f297572c9ecacc0d09bd9418017b2c (diff)
downloademacs-e80591ba8dbd3521605c9adb4c4bbae7e35e5aa8.tar.gz
emacs-e80591ba8dbd3521605c9adb4c4bbae7e35e5aa8.zip
* emacs-lisp/lisp-mode.el (lisp-mode-auto-fill): Make it an alias.
* progmodes/scheme.el (scheme-mode-variables): Don't use it.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/lisp-mode.el20
-rw-r--r--lisp/progmodes/scheme.el2
3 files changed, 6 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0cf25aca213..93779a34e3a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12008-04-19 Stefan Monnier <monnier@iro.umontreal.ca> 12008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/lisp-mode.el (lisp-mode-auto-fill): Make it an alias.
4 * progmodes/scheme.el (scheme-mode-variables): Don't use it.
5
3 * tooltip.el (tooltip-previous-message): New var. 6 * tooltip.el (tooltip-previous-message): New var.
4 (tooltip-show-help-non-mode): Rewrite to better follow the behavior of 7 (tooltip-show-help-non-mode): Rewrite to better follow the behavior of
5 the C code (avoid overwriting a minibuffer, restore previous echo 8 the C code (avoid overwriting a minibuffer, restore previous echo
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 9968a9a2f0c..48f0b9b7860 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -216,8 +216,6 @@
216 ;;(set (make-local-variable 'adaptive-fill-mode) nil) 216 ;;(set (make-local-variable 'adaptive-fill-mode) nil)
217 (make-local-variable 'indent-line-function) 217 (make-local-variable 'indent-line-function)
218 (setq indent-line-function 'lisp-indent-line) 218 (setq indent-line-function 'lisp-indent-line)
219 (make-local-variable 'indent-region-function)
220 (setq indent-region-function 'lisp-indent-region)
221 (make-local-variable 'parse-sexp-ignore-comments) 219 (make-local-variable 'parse-sexp-ignore-comments)
222 (setq parse-sexp-ignore-comments t) 220 (setq parse-sexp-ignore-comments t)
223 (make-local-variable 'outline-regexp) 221 (make-local-variable 'outline-regexp)
@@ -783,6 +781,8 @@ if it already has a value.\)
783With argument, insert value in current buffer after the defun. 781With argument, insert value in current buffer after the defun.
784Return the result of evaluation." 782Return the result of evaluation."
785 (interactive "P") 783 (interactive "P")
784 ;; FIXME: the print-length/level bindings should only be applied while
785 ;; printing, not while evaluating.
786 (let ((debug-on-error eval-expression-debug-on-error) 786 (let ((debug-on-error eval-expression-debug-on-error)
787 (print-length eval-expression-print-length) 787 (print-length eval-expression-print-length)
788 (print-level eval-expression-print-level)) 788 (print-level eval-expression-print-level))
@@ -855,21 +855,7 @@ which see."
855;; May still be used by some external Lisp-mode variant. 855;; May still be used by some external Lisp-mode variant.
856(define-obsolete-function-alias 'lisp-comment-indent 856(define-obsolete-function-alias 'lisp-comment-indent
857 'comment-indent-default "22.1") 857 'comment-indent-default "22.1")
858 858(define-obsolete-function-alias 'lisp-mode-auto-fill 'do-auto-fill "23.1")
859;; This function just forces a more costly detection of comments (using
860;; parse-partial-sexp from beginning-of-defun). I.e. It avoids the problem of
861;; taking a `;' inside a string started on another line for a comment starter.
862;; Note: `newcomment' gets it right now since we set comment-use-global-state
863;; so we could get rid of it. -stef
864(defun lisp-mode-auto-fill ()
865 (if (> (current-column) (current-fill-column))
866 (if (save-excursion
867 (nth 4 (syntax-ppss (point))))
868 (do-auto-fill)
869 (unless (and (boundp 'comment-auto-fill-only-comments)
870 comment-auto-fill-only-comments)
871 (let ((comment-start nil) (comment-start-skip nil))
872 (do-auto-fill))))))
873 859
874(defcustom lisp-indent-offset nil 860(defcustom lisp-indent-offset nil
875 "If non-nil, indent second line of expressions that many more columns." 861 "If non-nil, indent second line of expressions that many more columns."
diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el
index e863a8cfcb0..e308cb1b49a 100644
--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -141,8 +141,6 @@
141 ;; because lisp-fill-paragraph should do the job. 141 ;; because lisp-fill-paragraph should do the job.
142 (make-local-variable 'adaptive-fill-mode) 142 (make-local-variable 'adaptive-fill-mode)
143 (setq adaptive-fill-mode nil) 143 (setq adaptive-fill-mode nil)
144 (make-local-variable 'normal-auto-fill-function)
145 (setq normal-auto-fill-function 'lisp-mode-auto-fill)
146 (make-local-variable 'indent-line-function) 144 (make-local-variable 'indent-line-function)
147 (setq indent-line-function 'lisp-indent-line) 145 (setq indent-line-function 'lisp-indent-line)
148 (make-local-variable 'parse-sexp-ignore-comments) 146 (make-local-variable 'parse-sexp-ignore-comments)