diff options
| author | Jason Rumney | 2002-05-14 21:20:24 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-05-14 21:20:24 +0000 |
| commit | dd9b56636e148d19a34a0fee5b8155227b0146ad (patch) | |
| tree | 7ac839713f85e116aceffb020866e17d7a583d82 | |
| parent | af1a0140164f96d687b048a9074c5aa73372eafe (diff) | |
| download | emacs-dd9b56636e148d19a34a0fee5b8155227b0146ad.tar.gz emacs-dd9b56636e148d19a34a0fee5b8155227b0146ad.zip | |
(easy-menu-name-match): Match both
displayed text and internal name as string.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/easymenu.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 055c649df64..1b03522e9df 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-05-14 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/easymenu.el (easy-menu-name-match): Match both | ||
| 4 | displayed text and internal name as string. | ||
| 5 | |||
| 1 | 2002-05-14 Kim F. Storm <storm@cua.dk> | 6 | 2002-05-14 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * emulation/cua-rect.el (cua--rectangle-operation): | 8 | * emulation/cua-rect.el (cua--rectangle-operation): |
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index 51b2c3b91e4..fe0a8b841a5 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el | |||
| @@ -413,7 +413,11 @@ NAME can be either a string, or a symbol." | |||
| 413 | (if (symbolp name) | 413 | (if (symbolp name) |
| 414 | (eq (car-safe item) name) | 414 | (eq (car-safe item) name) |
| 415 | (if (stringp name) | 415 | (if (stringp name) |
| 416 | (member-ignore-case name item))))) | 416 | ;; Match against the text that is displayed to the user. |
| 417 | (or (member-ignore-case name item) | ||
| 418 | ;; Also check the string version of the symbol name, | ||
| 419 | ;; for backwards compatibility. | ||
| 420 | (eq (car-safe item) (intern name))))))) | ||
| 417 | 421 | ||
| 418 | (defun easy-menu-always-true (x) | 422 | (defun easy-menu-always-true (x) |
| 419 | "Return true if form X never evaluates to nil." | 423 | "Return true if form X never evaluates to nil." |