aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-11-03 03:22:30 +0000
committerGlenn Morris2009-11-03 03:22:30 +0000
commitdf8fff6c8af1159934fd41d2bae22257c03a0f97 (patch)
tree8e156f7a22c647025e4a2a7e11cb6fa748c743fd
parent2aea6521e39d2838f6541afc06a90e1f8b655386 (diff)
downloademacs-df8fff6c8af1159934fd41d2bae22257c03a0f97.tar.gz
emacs-df8fff6c8af1159934fd41d2bae22257c03a0f97.zip
(with-mode-local): Doc fix.
-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)