diff options
| author | Kenichi Handa | 2004-04-16 12:51:06 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-04-16 12:51:06 +0000 |
| commit | 6b61353c0a0320ee15bb6488149735381fed62ec (patch) | |
| tree | e69adba60e504a5a37beb556ad70084de88a7aab /src/keymap.c | |
| parent | dc6a28319312fe81f7a1015e363174022313f0bd (diff) | |
| download | emacs-6b61353c0a0320ee15bb6488149735381fed62ec.tar.gz emacs-6b61353c0a0320ee15bb6488149735381fed62ec.zip | |
Sync to HEAD
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/keymap.c b/src/keymap.c index 7fa4d9a6f71..62ea237b85c 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. |
| @@ -672,7 +672,6 @@ map_keymap (map, fun, args, data, autoload) | |||
| 672 | /* Loop over the char values represented in the vector. */ | 672 | /* Loop over the char values represented in the vector. */ |
| 673 | int len = ASIZE (binding); | 673 | int len = ASIZE (binding); |
| 674 | int c; | 674 | int c; |
| 675 | abort(); | ||
| 676 | for (c = 0; c < len; c++) | 675 | for (c = 0; c < len; c++) |
| 677 | { | 676 | { |
| 678 | Lisp_Object character; | 677 | Lisp_Object character; |
| @@ -2312,7 +2311,7 @@ shadow_lookup (shadow, key, flag) | |||
| 2312 | return Qnil; | 2311 | return Qnil; |
| 2313 | } | 2312 | } |
| 2314 | 2313 | ||
| 2315 | static Lisp_Object Vmenu_events; | 2314 | static Lisp_Object Vmouse_events; |
| 2316 | 2315 | ||
| 2317 | /* This function can GC if Flookup_key autoloads any keymaps. */ | 2316 | /* This function can GC if Flookup_key autoloads any keymaps. */ |
| 2318 | 2317 | ||
| @@ -2369,7 +2368,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect, no_remap) | |||
| 2369 | /* if (nomenus && !ascii_sequence_p (this)) */ | 2368 | /* if (nomenus && !ascii_sequence_p (this)) */ |
| 2370 | if (nomenus && XINT (last) >= 0 | 2369 | if (nomenus && XINT (last) >= 0 |
| 2371 | && SYMBOLP (tem = Faref (this, make_number (0))) | 2370 | && SYMBOLP (tem = Faref (this, make_number (0))) |
| 2372 | && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmenu_events))) | 2371 | && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmouse_events))) |
| 2373 | /* If no menu entries should be returned, skip over the | 2372 | /* If no menu entries should be returned, skip over the |
| 2374 | keymaps bound to `menu-bar' and `tool-bar' and other | 2373 | keymaps bound to `menu-bar' and `tool-bar' and other |
| 2375 | non-ascii prefixes like `C-down-mouse-2'. */ | 2374 | non-ascii prefixes like `C-down-mouse-2'. */ |
| @@ -3551,13 +3550,17 @@ This keymap works like `function-key-map', but comes after that, | |||
| 3551 | and applies even for keys that have ordinary bindings. */); | 3550 | and applies even for keys that have ordinary bindings. */); |
| 3552 | Vkey_translation_map = Qnil; | 3551 | Vkey_translation_map = Qnil; |
| 3553 | 3552 | ||
| 3554 | staticpro (&Vmenu_events); | 3553 | staticpro (&Vmouse_events); |
| 3555 | Vmenu_events = Fcons (intern ("menu-bar"), | 3554 | Vmouse_events = Fcons (intern ("menu-bar"), |
| 3556 | Fcons (intern ("tool-bar"), | 3555 | Fcons (intern ("tool-bar"), |
| 3557 | Fcons (intern ("mouse-1"), | 3556 | Fcons (intern ("header-line"), |
| 3558 | Fcons (intern ("mouse-2"), | 3557 | Fcons (intern ("mode-line"), |
| 3559 | Fcons (intern ("mouse-3"), | 3558 | Fcons (intern ("mouse-1"), |
| 3560 | Qnil))))); | 3559 | Fcons (intern ("mouse-2"), |
| 3560 | Fcons (intern ("mouse-3"), | ||
| 3561 | Fcons (intern ("mouse-4"), | ||
| 3562 | Fcons (intern ("mouse-5"), | ||
| 3563 | Qnil))))))))); | ||
| 3561 | 3564 | ||
| 3562 | 3565 | ||
| 3563 | Qsingle_key_description = intern ("single-key-description"); | 3566 | Qsingle_key_description = intern ("single-key-description"); |
| @@ -3624,3 +3627,6 @@ keys_of_keymap () | |||
| 3624 | initial_define_key (global_map, 033, "ESC-prefix"); | 3627 | initial_define_key (global_map, 033, "ESC-prefix"); |
| 3625 | initial_define_key (global_map, Ctl('X'), "Control-X-prefix"); | 3628 | initial_define_key (global_map, Ctl('X'), "Control-X-prefix"); |
| 3626 | } | 3629 | } |
| 3630 | |||
| 3631 | /* arch-tag: 6dd15c26-7cf1-41c4-b904-f42f7ddda463 | ||
| 3632 | (do not change this comment) */ | ||