diff options
| author | Stefan Monnier | 2004-02-04 20:19:37 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-02-04 20:19:37 +0000 |
| commit | 9d209cfe20a6eb0aaddead1331f06a78c468c407 (patch) | |
| tree | 068ae5649f8dd18b82b0be3d553946608e64841b /src | |
| parent | dbfa9ed49fe7fbe53fd45df861e7a86f171bf2fd (diff) | |
| download | emacs-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.c | 24 |
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 | ||
| 5 | This file is part of GNU Emacs. | 5 | This 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 | ||
| 2323 | static Lisp_Object Vmenu_events; | 2323 | static 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, | |||
| 3709 | and applies even for keys that have ordinary bindings. */); | 3709 | and 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"); |