Function: with-mode-local
with-mode-local is a macro defined in mode-local.el.gz.
Signature
(with-mode-local MODE &rest BODY)
Documentation
With the local bindings of MODE, evaluate BODY.
The current mode bindings are saved, BODY is evaluated, and the saved
bindings are restored, even in case of an abnormal exit.
Value is what BODY returns.
This is like with-mode-local-symbol, except that MODE is quoted
and is not evaluated.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/mode-local.el.gz
(defmacro with-mode-local (mode &rest body)
"With the local bindings of MODE, evaluate BODY.
The current mode bindings are saved, BODY is evaluated, and the saved
bindings are restored, even in case of an abnormal exit.
Value is what BODY returns.
This is like `with-mode-local-symbol', except that MODE is quoted
and is not evaluated."
(declare (indent 1))
`(with-mode-local-symbol ',mode ,@body))