aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-02-04 20:19:37 +0000
committerStefan Monnier2004-02-04 20:19:37 +0000
commit9d209cfe20a6eb0aaddead1331f06a78c468c407 (patch)
tree068ae5649f8dd18b82b0be3d553946608e64841b /src
parentdbfa9ed49fe7fbe53fd45df861e7a86f171bf2fd (diff)
downloademacs-9d209cfe20a6eb0aaddead1331f06a78c468c407.tar.gz
emacs-9d209cfe20a6eb0aaddead1331f06a78c468c407.zip
(Vmouse_events): Rename from Vmenu_events.
(syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 5f1f2a3f3a3..b181c3c5074 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1,5 +1,5 @@
1/* Manipulation of keymaps 1/* Manipulation of keymaps
2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000, 2001 2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000, 01, 2004
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -2320,7 +2320,7 @@ shadow_lookup (shadow, key, flag)
2320 return Qnil; 2320 return Qnil;
2321} 2321}
2322 2322
2323static Lisp_Object Vmenu_events; 2323static Lisp_Object Vmouse_events;
2324 2324
2325/* This function can GC if Flookup_key autoloads any keymaps. */ 2325/* This function can GC if Flookup_key autoloads any keymaps. */
2326 2326
@@ -2377,7 +2377,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap)
2377 /* if (nomenus && !ascii_sequence_p (this)) */ 2377 /* if (nomenus && !ascii_sequence_p (this)) */
2378 if (nomenus && XINT (last) >= 0 2378 if (nomenus && XINT (last) >= 0
2379 && SYMBOLP (tem = Faref (this, make_number (0))) 2379 && SYMBOLP (tem = Faref (this, make_number (0)))
2380 && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmenu_events))) 2380 && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmouse_events)))
2381 /* If no menu entries should be returned, skip over the 2381 /* If no menu entries should be returned, skip over the
2382 keymaps bound to `menu-bar' and `tool-bar' and other 2382 keymaps bound to `menu-bar' and `tool-bar' and other
2383 non-ascii prefixes like `C-down-mouse-2'. */ 2383 non-ascii prefixes like `C-down-mouse-2'. */
@@ -3709,13 +3709,17 @@ This keymap works like `function-key-map', but comes after that,
3709and applies even for keys that have ordinary bindings. */); 3709and applies even for keys that have ordinary bindings. */);
3710 Vkey_translation_map = Qnil; 3710 Vkey_translation_map = Qnil;
3711 3711
3712 staticpro (&Vmenu_events); 3712 staticpro (&Vmouse_events);
3713 Vmenu_events = Fcons (intern ("menu-bar"), 3713 Vmouse_events = Fcons (intern ("menu-bar"),
3714 Fcons (intern ("tool-bar"), 3714 Fcons (intern ("tool-bar"),
3715 Fcons (intern ("mouse-1"), 3715 Fcons (intern ("header-line"),
3716 Fcons (intern ("mouse-2"), 3716 Fcons (intern ("mode-line"),
3717 Fcons (intern ("mouse-3"), 3717 Fcons (intern ("mouse-1"),
3718 Qnil))))); 3718 Fcons (intern ("mouse-2"),
3719 Fcons (intern ("mouse-3"),
3720 Fcons (intern ("mouse-4"),
3721 Fcons (intern ("mouse-5"),
3722 Qnil)))))))));
3719 3723
3720 3724
3721 Qsingle_key_description = intern ("single-key-description"); 3725 Qsingle_key_description = intern ("single-key-description");