aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-10 01:45:58 +0000
committerRichard M. Stallman2005-04-10 01:45:58 +0000
commit18e2d91f52853c5e62d5f34e4f4238056d31a53b (patch)
treef802b0cf04ed13dc0369f20e66096bd95304179d /src
parent3f4ae3e47488114a4ce31016ebbbf1a298d48e0f (diff)
downloademacs-18e2d91f52853c5e62d5f34e4f4238056d31a53b.tar.gz
emacs-18e2d91f52853c5e62d5f34e4f4238056d31a53b.zip
(where_is_internal): Convert a string used as event type into "(any string)".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/keymap.c19
2 files changed, 31 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index feb43512869..860c3847941 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12005-04-09 Richard M. Stallman <rms@gnu.org>
2
3 * keymap.c (where_is_internal): Convert a string used as event type
4 into "(any string)".
5
6 * lread.c (Vloads_in_progress): Not static.
7
8 * fns.c (Vloads_in_progress): Add extern.
9 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
10
112005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
12
13 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
14
12005-04-09 Lute Kamstra <lute@gnu.org> 152005-04-09 Lute Kamstra <lute@gnu.org>
2 16
3 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is 17 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
diff --git a/src/keymap.c b/src/keymap.c
index 10ae718ba0d..ba314301080 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -764,7 +764,9 @@ usage: (map-keymap FUNCTION KEYMAP) */)
764 remove that. Also remove a menu help string as second element. 764 remove that. Also remove a menu help string as second element.
765 765
766 If AUTOLOAD is nonzero, load autoloadable keymaps 766 If AUTOLOAD is nonzero, load autoloadable keymaps
767 that are referred to with indirection. */ 767 that are referred to with indirection.
768
769 This can GC because menu_item_eval_property calls Feval. */
768 770
769Lisp_Object 771Lisp_Object
770get_keyelt (object, autoload) 772get_keyelt (object, autoload)
@@ -2554,6 +2556,19 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2554 continue; 2556 continue;
2555 2557
2556 record_sequence: 2558 record_sequence:
2559 /* Don't annoy user with strings from a menu such as
2560 Select Paste. Change them all to "(any string)",
2561 so that there seems to be only one menu item
2562 to report. */
2563 if (! NILP (sequence))
2564 {
2565 Lisp_Object tem;
2566 tem = Faref (sequence, make_number (XVECTOR (sequence)->size - 1));
2567 if (STRINGP (tem))
2568 Faset (sequence, make_number (XVECTOR (sequence)->size - 1),
2569 build_string ("(any string)"));
2570 }
2571
2557 /* It is a true unshadowed match. Record it, unless it's already 2572 /* It is a true unshadowed match. Record it, unless it's already
2558 been seen (as could happen when inheriting keymaps). */ 2573 been seen (as could happen when inheriting keymaps). */
2559 if (NILP (Fmember (sequence, found))) 2574 if (NILP (Fmember (sequence, found)))
@@ -2731,7 +2746,7 @@ where_is_internal_2 (args, key, binding)
2731} 2746}
2732 2747
2733 2748
2734/* This function cannot GC. */ 2749/* This function can GC because get_keyelt can. */
2735 2750
2736static Lisp_Object 2751static Lisp_Object
2737where_is_internal_1 (binding, key, definition, noindirect, this, last, 2752where_is_internal_1 (binding, key, definition, noindirect, this, last,