aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c19
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
770Lisp_Object 772Lisp_Object
771get_keyelt (object, autoload) 773get_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
2737static Lisp_Object 2752static Lisp_Object
2738where_is_internal_1 (binding, key, definition, noindirect, this, last, 2753where_is_internal_1 (binding, key, definition, noindirect, this, last,