aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorDan Nicolaescu2009-11-06 06:50:52 +0000
committerDan Nicolaescu2009-11-06 06:50:52 +0000
commitd67b4f80dbe514d6e351e7d89c78921c85e7dbe7 (patch)
treeda83a5dc49e499e330365feaa8123709fdf0cc88 /src/keymap.c
parent495bd5ca19cf79a9e91b77bf2e2ea37b8be3ef1f (diff)
downloademacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.gz
emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.zip
* xterm.c (syms_of_xterm):
* xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 2dddeab998d..edf535f7610 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -191,7 +191,7 @@ initial_define_key (keymap, key, defname)
191 int key; 191 int key;
192 char *defname; 192 char *defname;
193{ 193{
194 store_in_keymap (keymap, make_number (key), intern (defname)); 194 store_in_keymap (keymap, make_number (key), intern_c_string (defname));
195} 195}
196 196
197void 197void
@@ -200,7 +200,7 @@ initial_define_lispy_key (keymap, keyname, defname)
200 char *keyname; 200 char *keyname;
201 char *defname; 201 char *defname;
202{ 202{
203 store_in_keymap (keymap, intern (keyname), intern (defname)); 203 store_in_keymap (keymap, intern_c_string (keyname), intern_c_string (defname));
204} 204}
205 205
206DEFUN ("keymapp", Fkeymapp, Skeymapp, 1, 1, 0, 206DEFUN ("keymapp", Fkeymapp, Skeymapp, 1, 1, 0,
@@ -3911,14 +3911,14 @@ Return list of symbols found. */)
3911void 3911void
3912syms_of_keymap () 3912syms_of_keymap ()
3913{ 3913{
3914 Qkeymap = intern ("keymap"); 3914 Qkeymap = intern_c_string ("keymap");
3915 staticpro (&Qkeymap); 3915 staticpro (&Qkeymap);
3916 staticpro (&apropos_predicate); 3916 staticpro (&apropos_predicate);
3917 staticpro (&apropos_accumulate); 3917 staticpro (&apropos_accumulate);
3918 apropos_predicate = Qnil; 3918 apropos_predicate = Qnil;
3919 apropos_accumulate = Qnil; 3919 apropos_accumulate = Qnil;
3920 3920
3921 Qkeymap_canonicalize = intern ("keymap-canonicalize"); 3921 Qkeymap_canonicalize = intern_c_string ("keymap-canonicalize");
3922 staticpro (&Qkeymap_canonicalize); 3922 staticpro (&Qkeymap_canonicalize);
3923 3923
3924 /* Now we are ready to set up this property, so we can 3924 /* Now we are ready to set up this property, so we can
@@ -3930,19 +3930,19 @@ syms_of_keymap ()
3930 pointed to by a C variable */ 3930 pointed to by a C variable */
3931 3931
3932 global_map = Fmake_keymap (Qnil); 3932 global_map = Fmake_keymap (Qnil);
3933 Fset (intern ("global-map"), global_map); 3933 Fset (intern_c_string ("global-map"), global_map);
3934 3934
3935 current_global_map = global_map; 3935 current_global_map = global_map;
3936 staticpro (&global_map); 3936 staticpro (&global_map);
3937 staticpro (&current_global_map); 3937 staticpro (&current_global_map);
3938 3938
3939 meta_map = Fmake_keymap (Qnil); 3939 meta_map = Fmake_keymap (Qnil);
3940 Fset (intern ("esc-map"), meta_map); 3940 Fset (intern_c_string ("esc-map"), meta_map);
3941 Ffset (intern ("ESC-prefix"), meta_map); 3941 Ffset (intern_c_string ("ESC-prefix"), meta_map);
3942 3942
3943 control_x_map = Fmake_keymap (Qnil); 3943 control_x_map = Fmake_keymap (Qnil);
3944 Fset (intern ("ctl-x-map"), control_x_map); 3944 Fset (intern_c_string ("ctl-x-map"), control_x_map);
3945 Ffset (intern ("Control-X-prefix"), control_x_map); 3945 Ffset (intern_c_string ("Control-X-prefix"), control_x_map);
3946 3946
3947 exclude_keys 3947 exclude_keys
3948 = Fcons (Fcons (build_string ("DEL"), build_string ("\\d")), 3948 = Fcons (Fcons (build_string ("DEL"), build_string ("\\d")),
@@ -4028,37 +4028,37 @@ preferred. */);
4028 where_is_preferred_modifier = 0; 4028 where_is_preferred_modifier = 0;
4029 4029
4030 staticpro (&Vmouse_events); 4030 staticpro (&Vmouse_events);
4031 Vmouse_events = Fcons (intern ("menu-bar"), 4031 Vmouse_events = pure_cons (intern_c_string ("menu-bar"),
4032 Fcons (intern ("tool-bar"), 4032 pure_cons (intern_c_string ("tool-bar"),
4033 Fcons (intern ("header-line"), 4033 pure_cons (intern_c_string ("header-line"),
4034 Fcons (intern ("mode-line"), 4034 pure_cons (intern_c_string ("mode-line"),
4035 Fcons (intern ("mouse-1"), 4035 pure_cons (intern_c_string ("mouse-1"),
4036 Fcons (intern ("mouse-2"), 4036 pure_cons (intern_c_string ("mouse-2"),
4037 Fcons (intern ("mouse-3"), 4037 pure_cons (intern_c_string ("mouse-3"),
4038 Fcons (intern ("mouse-4"), 4038 pure_cons (intern_c_string ("mouse-4"),
4039 Fcons (intern ("mouse-5"), 4039 pure_cons (intern_c_string ("mouse-5"),
4040 Qnil))))))))); 4040 Qnil)))))))));
4041 4041
4042 4042
4043 Qsingle_key_description = intern ("single-key-description"); 4043 Qsingle_key_description = intern_c_string ("single-key-description");
4044 staticpro (&Qsingle_key_description); 4044 staticpro (&Qsingle_key_description);
4045 4045
4046 Qkey_description = intern ("key-description"); 4046 Qkey_description = intern_c_string ("key-description");
4047 staticpro (&Qkey_description); 4047 staticpro (&Qkey_description);
4048 4048
4049 Qkeymapp = intern ("keymapp"); 4049 Qkeymapp = intern_c_string ("keymapp");
4050 staticpro (&Qkeymapp); 4050 staticpro (&Qkeymapp);
4051 4051
4052 Qnon_ascii = intern ("non-ascii"); 4052 Qnon_ascii = intern_c_string ("non-ascii");
4053 staticpro (&Qnon_ascii); 4053 staticpro (&Qnon_ascii);
4054 4054
4055 Qmenu_item = intern ("menu-item"); 4055 Qmenu_item = intern_c_string ("menu-item");
4056 staticpro (&Qmenu_item); 4056 staticpro (&Qmenu_item);
4057 4057
4058 Qremap = intern ("remap"); 4058 Qremap = intern_c_string ("remap");
4059 staticpro (&Qremap); 4059 staticpro (&Qremap);
4060 4060
4061 QCadvertised_binding = intern (":advertised-binding"); 4061 QCadvertised_binding = intern_c_string (":advertised-binding");
4062 staticpro (&QCadvertised_binding); 4062 staticpro (&QCadvertised_binding);
4063 4063
4064 command_remapping_vector = Fmake_vector (make_number (2), Qremap); 4064 command_remapping_vector = Fmake_vector (make_number (2), Qremap);