aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorStefan Monnier2021-01-04 23:20:44 -0500
committerStefan Monnier2021-01-04 23:43:40 -0500
commit8ef4314c44a046e92bcd7dddde26203a9d641f09 (patch)
treebc221fa8fa938e7e30b254b344134fde8beaaae2 /src/keymap.c
parent5bddc097385c1d9088748ed92abc2370857b2202 (diff)
downloademacs-8ef4314c44a046e92bcd7dddde26203a9d641f09.tar.gz
emacs-8ef4314c44a046e92bcd7dddde26203a9d641f09.zip
* lisp/subr.el (esc-map): Initialize inside declaration
* src/commands.h (meta_map): * src/keymap.c (meta_map): Delete variable. (syms_of_keymap): Don't initialize esc-map here. (initial_define_key): * src/keymap.h (initial_define_key): Delete function. * src/keyboard.c (keys_of_keyboard): Don't initialize esc-map here. * src/window.h (keys_of_window): * src/window.c (keys_of_window): Delete function. * src/lisp.h (keys_of_casefiddle): * src/casefiddle.c (keys_of_casefiddle): Delete function. * src/emacs.c (main): Don't call them.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 171f9460412..37270f5782b 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -59,17 +59,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
59 59
60Lisp_Object current_global_map; /* Current global keymap. */ 60Lisp_Object current_global_map; /* Current global keymap. */
61 61
62Lisp_Object meta_map; /* The keymap used for globally bound
63 ESC-prefixed default commands. */
64
65 /* The keymap used by the minibuf for local
66 bindings when spaces are allowed in the
67 minibuf. */
68
69 /* The keymap used by the minibuf for local
70 bindings when spaces are not encouraged
71 in the minibuf. */
72
73/* Alist of elements like (DEL . "\d"). */ 62/* Alist of elements like (DEL . "\d"). */
74static Lisp_Object exclude_keys; 63static Lisp_Object exclude_keys;
75 64
@@ -135,19 +124,6 @@ in case you use it as a menu with `x-popup-menu'. */)
135 return list1 (Qkeymap); 124 return list1 (Qkeymap);
136} 125}
137 126
138/* This function is used for installing the standard key bindings
139 at initialization time.
140
141 For example:
142
143 initial_define_key (control_x_map, Ctl('X'), "exchange-point-and-mark"); */
144
145void
146initial_define_key (Lisp_Object keymap, int key, const char *defname)
147{
148 store_in_keymap (keymap, make_fixnum (key), intern_c_string (defname));
149}
150
151void 127void
152initial_define_lispy_key (Lisp_Object keymap, const char *keyname, const char *defname) 128initial_define_lispy_key (Lisp_Object keymap, const char *keyname, const char *defname)
153{ 129{
@@ -3193,10 +3169,6 @@ syms_of_keymap (void)
3193 current_global_map = Qnil; 3169 current_global_map = Qnil;
3194 staticpro (&current_global_map); 3170 staticpro (&current_global_map);
3195 3171
3196 meta_map = Fmake_keymap (Qnil);
3197 Fset (intern_c_string ("esc-map"), meta_map);
3198 Ffset (intern_c_string ("ESC-prefix"), meta_map);
3199
3200 exclude_keys = pure_list 3172 exclude_keys = pure_list
3201 (pure_cons (build_pure_c_string ("DEL"), build_pure_c_string ("\\d")), 3173 (pure_cons (build_pure_c_string ("DEL"), build_pure_c_string ("\\d")),
3202 pure_cons (build_pure_c_string ("TAB"), build_pure_c_string ("\\t")), 3174 pure_cons (build_pure_c_string ("TAB"), build_pure_c_string ("\\t")),