* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a

menu-item.
This commit is contained in:
Andreas Schwab 2011-10-31 11:53:16 +01:00
parent c5248a7e98
commit 08e1d82c88
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-10-31 Andreas Schwab <schwab@linux-m68k.org>
* subr.el (keymap--menu-item-with-binding): Ignore item if not a
menu-item.
2011-10-30 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* whitespace.el: New version 13.2.2.

View file

@ -624,6 +624,7 @@ Don't call this function; it is for internal use only."
(defun keymap--menu-item-with-binding (item binding)
"Build a menu-item like ITEM but with its binding changed to BINDING."
(cond
((not (consp item)) binding) ;Not a menu-item.
((eq 'menu-item (car item))
(setq item (copy-sequence item))
(let ((tail (nthcdr 2 item)))