diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/subr.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 74d578abf56..97ae0232d55 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-31 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * subr.el (keymap--menu-item-with-binding): Ignore item if not a | ||
| 4 | menu-item. | ||
| 5 | |||
| 1 | 2011-10-30 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | 2011-10-30 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 7 | ||
| 3 | * whitespace.el: New version 13.2.2. | 8 | * whitespace.el: New version 13.2.2. |
diff --git a/lisp/subr.el b/lisp/subr.el index 50ea49bd8c9..d5120826812 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -624,6 +624,7 @@ Don't call this function; it is for internal use only." | |||
| 624 | (defun keymap--menu-item-with-binding (item binding) | 624 | (defun keymap--menu-item-with-binding (item binding) |
| 625 | "Build a menu-item like ITEM but with its binding changed to BINDING." | 625 | "Build a menu-item like ITEM but with its binding changed to BINDING." |
| 626 | (cond | 626 | (cond |
| 627 | ((not (consp item)) binding) ;Not a menu-item. | ||
| 627 | ((eq 'menu-item (car item)) | 628 | ((eq 'menu-item (car item)) |
| 628 | (setq item (copy-sequence item)) | 629 | (setq item (copy-sequence item)) |
| 629 | (let ((tail (nthcdr 2 item))) | 630 | (let ((tail (nthcdr 2 item))) |