summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-01-17 18:49:59 -0800
committerGlenn Morris <rgm@gnu.org>2011-01-17 18:49:59 -0800
commita9faac5c6333bcbfb30a00debf3de7a44e430e49 (patch)
tree32ac93da5a3873c87131704a6469838b044d575d /lisp/emacs-lisp
parentacce4a473ad27f2dec42cf2d35ffe3bb1acd471a (diff)
parent9d760d754bde2eadd3f017fec5ea1cbe3810d666 (diff)
downloademacs-a9faac5c6333bcbfb30a00debf3de7a44e430e49.tar.gz
emacs-a9faac5c6333bcbfb30a00debf3de7a44e430e49.tar.bz2
emacs-a9faac5c6333bcbfb30a00debf3de7a44e430e49.zip
Merge from emacs-23 branch, up to 2010-05-20T22:16:19Z!juri@jurta.org.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 3d18d8e1cca..7f7198c36c9 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -94,8 +94,9 @@ Optional INIT-VALUE is the initial value of the mode's variable.
Optional LIGHTER is displayed in the modeline when the mode is on.
Optional KEYMAP is the default keymap bound to the mode keymap.
If non-nil, it should be a variable name (whose value is a keymap),
- a keymap, or a list of arguments for `easy-mmode-define-keymap'.
- If KEYMAP is a keymap or list, this also defines the variable MODE-map.
+ or an expression that returns either a keymap or a list of
+ arguments for `easy-mmode-define-keymap'. If KEYMAP is not a symbol,
+ this also defines the variable MODE-map.
BODY contains code to execute each time the mode is enabled or disabled.
It is executed after toggling the mode, and before running MODE-hook.
@@ -274,7 +275,7 @@ With zero or negative ARG turn mode off.
(let ((m ,keymap))
(cond ((keymapp m) m)
((listp m) (easy-mmode-define-keymap m))
- (t (error "Invalid keymap %S" ,keymap))))
+ (t (error "Invalid keymap %S" m))))
,(format "Keymap for `%s'." mode-name)))
,(if (not (symbolp mode))