diff options
| author | Andreas Schwab | 2011-10-31 11:53:16 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2011-10-31 11:53:16 +0100 |
| commit | 08e1d82c8818959ce2885519fe138172e2db5bf3 (patch) | |
| tree | ff0ddb12a906fa7f24fd002968c579fa115c5e6b | |
| parent | c5248a7e98f8b57d8b1fc42ece44f16b58415b0f (diff) | |
| download | emacs-08e1d82c8818959ce2885519fe138172e2db5bf3.tar.gz emacs-08e1d82c8818959ce2885519fe138172e2db5bf3.zip | |
* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a
menu-item.
| -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))) |