aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-24 02:02:40 +0000
committerStefan Monnier2008-04-24 02:02:40 +0000
commitb7b49316c596a463ef4f9dd8220bad1e2f2e3eff (patch)
tree8ff87577dadcafd121333db455b01519b66ea323
parent19c04f39661b60d704f66d6e408e58e854cf45b9 (diff)
downloademacs-b7b49316c596a463ef4f9dd8220bad1e2f2e3eff.tar.gz
emacs-b7b49316c596a463ef4f9dd8220bad1e2f2e3eff.zip
(easy-menu-make-symbol): Don't wrap keyboard macros within lambdas.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/easymenu.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a26d3997a63..6a7c7e1eabe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * emacs-lisp/easymenu.el (easy-menu-make-symbol): Don't wrap keyboard
4 macros within lambdas.
5
12008-04-23 Stefan Monnier <monnier@iro.umontreal.ca> 62008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * minibuffer.el (completion-try-completion): Add `point' argument. 8 * minibuffer.el (completion-try-completion): Add `point' argument.
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el
index ca5151fa984..8e2f4322c03 100644
--- a/lisp/emacs-lisp/easymenu.el
+++ b/lisp/emacs-lisp/easymenu.el
@@ -470,7 +470,10 @@ When non-nil, NOEXP indicates that CALLBACK cannot be an expression
470 (make-symbol (format "menu-function-%d" easy-menu-item-count)))) 470 (make-symbol (format "menu-function-%d" easy-menu-item-count))))
471 (setq easy-menu-item-count (1+ easy-menu-item-count)) 471 (setq easy-menu-item-count (1+ easy-menu-item-count))
472 (fset command 472 (fset command
473 (if (or (keymapp callback) (functionp callback) noexp) callback 473 (if (or (keymapp callback) (commandp callback)
474 ;; `functionp' is probably not needed.
475 (functionp callback) noexp)
476 callback
474 `(lambda () (interactive) ,callback))) 477 `(lambda () (interactive) ,callback)))
475 command)) 478 command))
476 479