diff options
| author | Karoly Lorentey | 2005-04-11 12:40:15 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-04-11 12:40:15 +0000 |
| commit | 221d5c8772dc29f854292ec7cb423fce925daecf (patch) | |
| tree | 5fe05145ce31ffcc9d1a621c027410151e4a2106 /src/keymap.c | |
| parent | 1b9ab2508610fea57aa777956de14ee84d66862f (diff) | |
| parent | 9552bee8c6e7c5ee16ca60cddebaebdf5d238e05 (diff) | |
| download | emacs-221d5c8772dc29f854292ec7cb423fce925daecf.tar.gz emacs-221d5c8772dc29f854292ec7cb423fce925daecf.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 59, 240-245)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-240
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-241
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-242
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-244
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-245
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-59
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-326
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c index a55563a4e92..3706ad52c9e 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -765,7 +765,9 @@ usage: (map-keymap FUNCTION KEYMAP) */) | |||
| 765 | remove that. Also remove a menu help string as second element. | 765 | remove that. Also remove a menu help string as second element. |
| 766 | 766 | ||
| 767 | If AUTOLOAD is nonzero, load autoloadable keymaps | 767 | If AUTOLOAD is nonzero, load autoloadable keymaps |
| 768 | that are referred to with indirection. */ | 768 | that are referred to with indirection. |
| 769 | |||
| 770 | This can GC because menu_item_eval_property calls Feval. */ | ||
| 769 | 771 | ||
| 770 | Lisp_Object | 772 | Lisp_Object |
| 771 | get_keyelt (object, autoload) | 773 | get_keyelt (object, autoload) |
| @@ -2555,6 +2557,19 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap) | |||
| 2555 | continue; | 2557 | continue; |
| 2556 | 2558 | ||
| 2557 | record_sequence: | 2559 | record_sequence: |
| 2560 | /* Don't annoy user with strings from a menu such as | ||
| 2561 | Select Paste. Change them all to "(any string)", | ||
| 2562 | so that there seems to be only one menu item | ||
| 2563 | to report. */ | ||
| 2564 | if (! NILP (sequence)) | ||
| 2565 | { | ||
| 2566 | Lisp_Object tem; | ||
| 2567 | tem = Faref (sequence, make_number (XVECTOR (sequence)->size - 1)); | ||
| 2568 | if (STRINGP (tem)) | ||
| 2569 | Faset (sequence, make_number (XVECTOR (sequence)->size - 1), | ||
| 2570 | build_string ("(any string)")); | ||
| 2571 | } | ||
| 2572 | |||
| 2558 | /* It is a true unshadowed match. Record it, unless it's already | 2573 | /* It is a true unshadowed match. Record it, unless it's already |
| 2559 | been seen (as could happen when inheriting keymaps). */ | 2574 | been seen (as could happen when inheriting keymaps). */ |
| 2560 | if (NILP (Fmember (sequence, found))) | 2575 | if (NILP (Fmember (sequence, found))) |
| @@ -2732,7 +2747,7 @@ where_is_internal_2 (args, key, binding) | |||
| 2732 | } | 2747 | } |
| 2733 | 2748 | ||
| 2734 | 2749 | ||
| 2735 | /* This function cannot GC. */ | 2750 | /* This function can GC because get_keyelt can. */ |
| 2736 | 2751 | ||
| 2737 | static Lisp_Object | 2752 | static Lisp_Object |
| 2738 | where_is_internal_1 (binding, key, definition, noindirect, this, last, | 2753 | where_is_internal_1 (binding, key, definition, noindirect, this, last, |