diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-04 22:57:21 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-04 23:41:19 -0500 |
commit | d6f30e5632b1c9cf43ebfbdbf164d5c54be33475 (patch) | |
tree | d358a335c8404ba9233379b5baf8bf158da90487 /src/keymap.c | |
parent | 898a94a9be06a3ab51116778f6b4a263f832759d (diff) | |
download | emacs-d6f30e5632b1c9cf43ebfbdbf164d5c54be33475.tar.gz |
* lisp/subr.el (global-map): Initialize inside declaration.
* src/commands.h (global_map):
* src/keymap.c (global_map): Delete variable.
(syms_of_keymap): Don't initialize global_map here.
(keys_of_keymap): Delete function.
* src/lisp.h (keys_of_cmds):
* src/cmds.c (keys_of_cmds): Delete function.
* src/emacs.c (main): Don't call them.
* src/window.c (keys_of_window): Don't initialize global_map here.
* src/keyboard.c (keys_of_keyboard): Don't initialize global_map here.
Diffstat (limited to 'src/keymap.c')
-rw-r--r-- | src/keymap.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/keymap.c b/src/keymap.c index 1eeea81f627..772ced42ccd 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -59,8 +59,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ Lisp_Object current_global_map; /* Current global keymap. */ -Lisp_Object global_map; /* Default global key bindings. */ - Lisp_Object meta_map; /* The keymap used for globally bound ESC-prefixed default commands. */ @@ -3195,11 +3193,7 @@ syms_of_keymap (void) Each one is the value of a Lisp variable, and is also pointed to by a C variable */ - global_map = Fmake_keymap (Qnil); - Fset (intern_c_string ("global-map"), global_map); - - current_global_map = global_map; - staticpro (&global_map); + current_global_map = Qnil; staticpro (¤t_global_map); meta_map = Fmake_keymap (Qnil); @@ -3328,10 +3322,3 @@ be preferred. */); defsubr (&Swhere_is_internal); defsubr (&Sdescribe_buffer_bindings); } - -void -keys_of_keymap (void) -{ - initial_define_key (global_map, 033, "ESC-prefix"); - initial_define_key (global_map, Ctl ('X'), "Control-X-prefix"); -} |