summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-01-04 22:57:21 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-01-04 23:41:19 -0500
commitd6f30e5632b1c9cf43ebfbdbf164d5c54be33475 (patch)
treed358a335c8404ba9233379b5baf8bf158da90487 /src/keymap.c
parent898a94a9be06a3ab51116778f6b4a263f832759d (diff)
downloademacs-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.c15
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 (&current_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");
-}