aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/cedet/mode-local.el5
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e3cb2bfc0f6..56a62adb847 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12009-11-03 Glenn Morris <rgm@gnu.org> 12009-11-03 Glenn Morris <rgm@gnu.org>
2 2
3 * cedet/mode-local.el (with-mode-local): Doc fix.
4
3 * emacs-lisp/bytecomp.el (byte-compile-file-form-defvar) 5 * emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
4 (byte-compile-file-form-define-abbrev-table) 6 (byte-compile-file-form-define-abbrev-table)
5 (byte-compile-file-form-custom-declare-variable) 7 (byte-compile-file-form-custom-declare-variable)
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index 62e8c89a0bd..c862faaef63 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -70,6 +70,9 @@ Return nil if MODE has no parent."
70 (or (get mode 'mode-local-parent) 70 (or (get mode 'mode-local-parent)
71 (get mode 'derived-mode-parent))) 71 (get mode 'derived-mode-parent)))
72 72
73;; FIXME doc (and function name) seems wrong.
74;; Return a list of MODE and all its parent modes, if any.
75;; Lists parent modes first.
73(defun mode-local-equivalent-mode-p (mode) 76(defun mode-local-equivalent-mode-p (mode)
74 "Is the major-mode in the current buffer equivalent to a mode in MODES." 77 "Is the major-mode in the current buffer equivalent to a mode in MODES."
75 (let ((modes nil)) 78 (let ((modes nil))
@@ -377,7 +380,7 @@ To use the symbol MODE (quoted), use `with-mode-local'."
377The current mode bindings are saved, BODY is evaluated, and the saved 380The current mode bindings are saved, BODY is evaluated, and the saved
378bindings are restored, even in case of an abnormal exit. 381bindings are restored, even in case of an abnormal exit.
379Value is what BODY returns. 382Value is what BODY returns.
380This lis like `with-mode-local-symbol', except that MODE is quoted 383This is like `with-mode-local-symbol', except that MODE is quoted
381and is note evaluated." 384and is note evaluated."
382 `(with-mode-local-symbol ',mode ,@body)) 385 `(with-mode-local-symbol ',mode ,@body))
383(put 'with-mode-local 'lisp-indent-function 1) 386(put 'with-mode-local 'lisp-indent-function 1)