aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorMiles Bader2005-04-14 05:03:52 +0000
committerMiles Bader2005-04-14 05:03:52 +0000
commit4a4ae7ad21e9e53ed9a0006c39d69108333bc896 (patch)
tree514ec70cdfdd49c518599e15b8fdf1e85850e7d7 /src/keymap.c
parent6f14f88410854410caf4b402cfbe0f93a80c3f86 (diff)
parent24531f226fb1150c3a52a3ebf9273d1af36062ea (diff)
downloademacs-4a4ae7ad21e9e53ed9a0006c39d69108333bc896.tar.gz
emacs-4a4ae7ad21e9e53ed9a0006c39d69108333bc896.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-37
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 241-257) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 59-65) - Update from CVS - Merge from emacs--cvs-trunk--0 - (mm-string-to-multibyte): Use Gnus trunk definition.
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 3aaecf1a5d7..3484186404a 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -739,7 +739,9 @@ usage: (map-keymap FUNCTION KEYMAP) */)
739 remove that. Also remove a menu help string as second element. 739 remove that. Also remove a menu help string as second element.
740 740
741 If AUTOLOAD is nonzero, load autoloadable keymaps 741 If AUTOLOAD is nonzero, load autoloadable keymaps
742 that are referred to with indirection. */ 742 that are referred to with indirection.
743
744 This can GC because menu_item_eval_property calls Feval. */
743 745
744Lisp_Object 746Lisp_Object
745get_keyelt (object, autoload) 747get_keyelt (object, autoload)
@@ -2543,6 +2545,19 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2543 continue; 2545 continue;
2544 2546
2545 record_sequence: 2547 record_sequence:
2548 /* Don't annoy user with strings from a menu such as
2549 Select Paste. Change them all to "(any string)",
2550 so that there seems to be only one menu item
2551 to report. */
2552 if (! NILP (sequence))
2553 {
2554 Lisp_Object tem;
2555 tem = Faref (sequence, make_number (XVECTOR (sequence)->size - 1));
2556 if (STRINGP (tem))
2557 Faset (sequence, make_number (XVECTOR (sequence)->size - 1),
2558 build_string ("(any string)"));
2559 }
2560
2546 /* It is a true unshadowed match. Record it, unless it's already 2561 /* It is a true unshadowed match. Record it, unless it's already
2547 been seen (as could happen when inheriting keymaps). */ 2562 been seen (as could happen when inheriting keymaps). */
2548 if (NILP (Fmember (sequence, found))) 2563 if (NILP (Fmember (sequence, found)))
@@ -2750,7 +2765,7 @@ where_is_internal_2 (args, key, binding)
2750} 2765}
2751 2766
2752 2767
2753/* This function cannot GC. */ 2768/* This function can GC because get_keyelt can. */
2754 2769
2755static Lisp_Object 2770static Lisp_Object
2756where_is_internal_1 (binding, key, definition, noindirect, this, last, 2771where_is_internal_1 (binding, key, definition, noindirect, this, last,