aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.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/keyboard.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/keyboard.c')
-rw-r--r--src/keyboard.c120
1 files changed, 60 insertions, 60 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b7399a651b7..a6bfb08e5d8 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -11708,14 +11708,14 @@ syms_of_keyboard ()
11708 staticpro (&Vlispy_mouse_stem); 11708 staticpro (&Vlispy_mouse_stem);
11709 11709
11710 /* Tool-bars. */ 11710 /* Tool-bars. */
11711 QCimage = intern (":image"); 11711 QCimage = intern_c_string (":image");
11712 staticpro (&QCimage); 11712 staticpro (&QCimage);
11713 11713
11714 staticpro (&Qhelp_echo); 11714 staticpro (&Qhelp_echo);
11715 Qhelp_echo = intern ("help-echo"); 11715 Qhelp_echo = intern_c_string ("help-echo");
11716 11716
11717 staticpro (&Qrtl); 11717 staticpro (&Qrtl);
11718 Qrtl = intern (":rtl"); 11718 Qrtl = intern_c_string (":rtl");
11719 11719
11720 staticpro (&item_properties); 11720 staticpro (&item_properties);
11721 item_properties = Qnil; 11721 item_properties = Qnil;
@@ -11728,135 +11728,135 @@ syms_of_keyboard ()
11728 staticpro (&real_this_command); 11728 staticpro (&real_this_command);
11729 real_this_command = Qnil; 11729 real_this_command = Qnil;
11730 11730
11731 Qtimer_event_handler = intern ("timer-event-handler"); 11731 Qtimer_event_handler = intern_c_string ("timer-event-handler");
11732 staticpro (&Qtimer_event_handler); 11732 staticpro (&Qtimer_event_handler);
11733 11733
11734 Qdisabled_command_function = intern ("disabled-command-function"); 11734 Qdisabled_command_function = intern_c_string ("disabled-command-function");
11735 staticpro (&Qdisabled_command_function); 11735 staticpro (&Qdisabled_command_function);
11736 11736
11737 Qself_insert_command = intern ("self-insert-command"); 11737 Qself_insert_command = intern_c_string ("self-insert-command");
11738 staticpro (&Qself_insert_command); 11738 staticpro (&Qself_insert_command);
11739 11739
11740 Qforward_char = intern ("forward-char"); 11740 Qforward_char = intern_c_string ("forward-char");
11741 staticpro (&Qforward_char); 11741 staticpro (&Qforward_char);
11742 11742
11743 Qbackward_char = intern ("backward-char"); 11743 Qbackward_char = intern_c_string ("backward-char");
11744 staticpro (&Qbackward_char); 11744 staticpro (&Qbackward_char);
11745 11745
11746 Qdisabled = intern ("disabled"); 11746 Qdisabled = intern_c_string ("disabled");
11747 staticpro (&Qdisabled); 11747 staticpro (&Qdisabled);
11748 11748
11749 Qundefined = intern ("undefined"); 11749 Qundefined = intern_c_string ("undefined");
11750 staticpro (&Qundefined); 11750 staticpro (&Qundefined);
11751 11751
11752 Qpre_command_hook = intern ("pre-command-hook"); 11752 Qpre_command_hook = intern_c_string ("pre-command-hook");
11753 staticpro (&Qpre_command_hook); 11753 staticpro (&Qpre_command_hook);
11754 11754
11755 Qpost_command_hook = intern ("post-command-hook"); 11755 Qpost_command_hook = intern_c_string ("post-command-hook");
11756 staticpro (&Qpost_command_hook); 11756 staticpro (&Qpost_command_hook);
11757 11757
11758 Qdeferred_action_function = intern ("deferred-action-function"); 11758 Qdeferred_action_function = intern_c_string ("deferred-action-function");
11759 staticpro (&Qdeferred_action_function); 11759 staticpro (&Qdeferred_action_function);
11760 11760
11761 Qcommand_hook_internal = intern ("command-hook-internal"); 11761 Qcommand_hook_internal = intern_c_string ("command-hook-internal");
11762 staticpro (&Qcommand_hook_internal); 11762 staticpro (&Qcommand_hook_internal);
11763 11763
11764 Qfunction_key = intern ("function-key"); 11764 Qfunction_key = intern_c_string ("function-key");
11765 staticpro (&Qfunction_key); 11765 staticpro (&Qfunction_key);
11766 Qmouse_click = intern ("mouse-click"); 11766 Qmouse_click = intern_c_string ("mouse-click");
11767 staticpro (&Qmouse_click); 11767 staticpro (&Qmouse_click);
11768#if defined (WINDOWSNT) 11768#if defined (WINDOWSNT)
11769 Qlanguage_change = intern ("language-change"); 11769 Qlanguage_change = intern_c_string ("language-change");
11770 staticpro (&Qlanguage_change); 11770 staticpro (&Qlanguage_change);
11771#endif 11771#endif
11772 Qdrag_n_drop = intern ("drag-n-drop"); 11772 Qdrag_n_drop = intern_c_string ("drag-n-drop");
11773 staticpro (&Qdrag_n_drop); 11773 staticpro (&Qdrag_n_drop);
11774 11774
11775 Qsave_session = intern ("save-session"); 11775 Qsave_session = intern_c_string ("save-session");
11776 staticpro (&Qsave_session); 11776 staticpro (&Qsave_session);
11777 11777
11778#ifdef HAVE_DBUS 11778#ifdef HAVE_DBUS
11779 Qdbus_event = intern ("dbus-event"); 11779 Qdbus_event = intern_c_string ("dbus-event");
11780 staticpro (&Qdbus_event); 11780 staticpro (&Qdbus_event);
11781#endif 11781#endif
11782 11782
11783 Qmenu_enable = intern ("menu-enable"); 11783 Qmenu_enable = intern_c_string ("menu-enable");
11784 staticpro (&Qmenu_enable); 11784 staticpro (&Qmenu_enable);
11785 QCenable = intern (":enable"); 11785 QCenable = intern_c_string (":enable");
11786 staticpro (&QCenable); 11786 staticpro (&QCenable);
11787 QCvisible = intern (":visible"); 11787 QCvisible = intern_c_string (":visible");
11788 staticpro (&QCvisible); 11788 staticpro (&QCvisible);
11789 QChelp = intern (":help"); 11789 QChelp = intern_c_string (":help");
11790 staticpro (&QChelp); 11790 staticpro (&QChelp);
11791 QCfilter = intern (":filter"); 11791 QCfilter = intern_c_string (":filter");
11792 staticpro (&QCfilter); 11792 staticpro (&QCfilter);
11793 QCbutton = intern (":button"); 11793 QCbutton = intern_c_string (":button");
11794 staticpro (&QCbutton); 11794 staticpro (&QCbutton);
11795 QCkeys = intern (":keys"); 11795 QCkeys = intern_c_string (":keys");
11796 staticpro (&QCkeys); 11796 staticpro (&QCkeys);
11797 QCkey_sequence = intern (":key-sequence"); 11797 QCkey_sequence = intern_c_string (":key-sequence");
11798 staticpro (&QCkey_sequence); 11798 staticpro (&QCkey_sequence);
11799 QCtoggle = intern (":toggle"); 11799 QCtoggle = intern_c_string (":toggle");
11800 staticpro (&QCtoggle); 11800 staticpro (&QCtoggle);
11801 QCradio = intern (":radio"); 11801 QCradio = intern_c_string (":radio");
11802 staticpro (&QCradio); 11802 staticpro (&QCradio);
11803 11803
11804 Qmode_line = intern ("mode-line"); 11804 Qmode_line = intern_c_string ("mode-line");
11805 staticpro (&Qmode_line); 11805 staticpro (&Qmode_line);
11806 Qvertical_line = intern ("vertical-line"); 11806 Qvertical_line = intern_c_string ("vertical-line");
11807 staticpro (&Qvertical_line); 11807 staticpro (&Qvertical_line);
11808 Qvertical_scroll_bar = intern ("vertical-scroll-bar"); 11808 Qvertical_scroll_bar = intern_c_string ("vertical-scroll-bar");
11809 staticpro (&Qvertical_scroll_bar); 11809 staticpro (&Qvertical_scroll_bar);
11810 Qmenu_bar = intern ("menu-bar"); 11810 Qmenu_bar = intern_c_string ("menu-bar");
11811 staticpro (&Qmenu_bar); 11811 staticpro (&Qmenu_bar);
11812 11812
11813#if defined (HAVE_MOUSE) || defined (HAVE_GPM) 11813#if defined (HAVE_MOUSE) || defined (HAVE_GPM)
11814 Qmouse_fixup_help_message = intern ("mouse-fixup-help-message"); 11814 Qmouse_fixup_help_message = intern_c_string ("mouse-fixup-help-message");
11815 staticpro (&Qmouse_fixup_help_message); 11815 staticpro (&Qmouse_fixup_help_message);
11816#endif 11816#endif
11817 11817
11818 Qabove_handle = intern ("above-handle"); 11818 Qabove_handle = intern_c_string ("above-handle");
11819 staticpro (&Qabove_handle); 11819 staticpro (&Qabove_handle);
11820 Qhandle = intern ("handle"); 11820 Qhandle = intern_c_string ("handle");
11821 staticpro (&Qhandle); 11821 staticpro (&Qhandle);
11822 Qbelow_handle = intern ("below-handle"); 11822 Qbelow_handle = intern_c_string ("below-handle");
11823 staticpro (&Qbelow_handle); 11823 staticpro (&Qbelow_handle);
11824 Qup = intern ("up"); 11824 Qup = intern_c_string ("up");
11825 staticpro (&Qup); 11825 staticpro (&Qup);
11826 Qdown = intern ("down"); 11826 Qdown = intern_c_string ("down");
11827 staticpro (&Qdown); 11827 staticpro (&Qdown);
11828 Qtop = intern ("top"); 11828 Qtop = intern_c_string ("top");
11829 staticpro (&Qtop); 11829 staticpro (&Qtop);
11830 Qbottom = intern ("bottom"); 11830 Qbottom = intern_c_string ("bottom");
11831 staticpro (&Qbottom); 11831 staticpro (&Qbottom);
11832 Qend_scroll = intern ("end-scroll"); 11832 Qend_scroll = intern_c_string ("end-scroll");
11833 staticpro (&Qend_scroll); 11833 staticpro (&Qend_scroll);
11834 Qratio = intern ("ratio"); 11834 Qratio = intern_c_string ("ratio");
11835 staticpro (&Qratio); 11835 staticpro (&Qratio);
11836 11836
11837 Qevent_kind = intern ("event-kind"); 11837 Qevent_kind = intern_c_string ("event-kind");
11838 staticpro (&Qevent_kind); 11838 staticpro (&Qevent_kind);
11839 Qevent_symbol_elements = intern ("event-symbol-elements"); 11839 Qevent_symbol_elements = intern_c_string ("event-symbol-elements");
11840 staticpro (&Qevent_symbol_elements); 11840 staticpro (&Qevent_symbol_elements);
11841 Qevent_symbol_element_mask = intern ("event-symbol-element-mask"); 11841 Qevent_symbol_element_mask = intern_c_string ("event-symbol-element-mask");
11842 staticpro (&Qevent_symbol_element_mask); 11842 staticpro (&Qevent_symbol_element_mask);
11843 Qmodifier_cache = intern ("modifier-cache"); 11843 Qmodifier_cache = intern_c_string ("modifier-cache");
11844 staticpro (&Qmodifier_cache); 11844 staticpro (&Qmodifier_cache);
11845 11845
11846 Qrecompute_lucid_menubar = intern ("recompute-lucid-menubar"); 11846 Qrecompute_lucid_menubar = intern_c_string ("recompute-lucid-menubar");
11847 staticpro (&Qrecompute_lucid_menubar); 11847 staticpro (&Qrecompute_lucid_menubar);
11848 Qactivate_menubar_hook = intern ("activate-menubar-hook"); 11848 Qactivate_menubar_hook = intern_c_string ("activate-menubar-hook");
11849 staticpro (&Qactivate_menubar_hook); 11849 staticpro (&Qactivate_menubar_hook);
11850 11850
11851 Qpolling_period = intern ("polling-period"); 11851 Qpolling_period = intern_c_string ("polling-period");
11852 staticpro (&Qpolling_period); 11852 staticpro (&Qpolling_period);
11853 11853
11854 Qinput_method_function = intern ("input-method-function"); 11854 Qinput_method_function = intern_c_string ("input-method-function");
11855 staticpro (&Qinput_method_function); 11855 staticpro (&Qinput_method_function);
11856 11856
11857 Qinput_method_exit_on_first_char = intern ("input-method-exit-on-first-char"); 11857 Qinput_method_exit_on_first_char = intern_c_string ("input-method-exit-on-first-char");
11858 staticpro (&Qinput_method_exit_on_first_char); 11858 staticpro (&Qinput_method_exit_on_first_char);
11859 Qinput_method_use_echo_area = intern ("input-method-use-echo-area"); 11859 Qinput_method_use_echo_area = intern_c_string ("input-method-use-echo-area");
11860 staticpro (&Qinput_method_use_echo_area); 11860 staticpro (&Qinput_method_use_echo_area);
11861 11861
11862 Fset (Qinput_method_exit_on_first_char, Qnil); 11862 Fset (Qinput_method_exit_on_first_char, Qnil);
@@ -11872,7 +11872,7 @@ syms_of_keyboard ()
11872 p < head_table + (sizeof (head_table) / sizeof (head_table[0])); 11872 p < head_table + (sizeof (head_table) / sizeof (head_table[0]));
11873 p++) 11873 p++)
11874 { 11874 {
11875 *p->var = intern (p->name); 11875 *p->var = intern_c_string (p->name);
11876 staticpro (p->var); 11876 staticpro (p->var);
11877 Fput (*p->var, Qevent_kind, *p->kind); 11877 Fput (*p->var, Qevent_kind, *p->kind);
11878 Fput (*p->var, Qevent_symbol_elements, Fcons (*p->var, Qnil)); 11878 Fput (*p->var, Qevent_symbol_elements, Fcons (*p->var, Qnil));
@@ -11895,7 +11895,7 @@ syms_of_keyboard ()
11895 modifier_symbols = Fmake_vector (make_number (len), Qnil); 11895 modifier_symbols = Fmake_vector (make_number (len), Qnil);
11896 for (i = 0; i < len; i++) 11896 for (i = 0; i < len; i++)
11897 if (modifier_names[i]) 11897 if (modifier_names[i])
11898 XVECTOR (modifier_symbols)->contents[i] = intern (modifier_names[i]); 11898 XVECTOR (modifier_symbols)->contents[i] = intern_c_string (modifier_names[i]);
11899 staticpro (&modifier_symbols); 11899 staticpro (&modifier_symbols);
11900 } 11900 }
11901 11901
@@ -11908,7 +11908,7 @@ syms_of_keyboard ()
11908 raw_keybuf = Fmake_vector (make_number (30), Qnil); 11908 raw_keybuf = Fmake_vector (make_number (30), Qnil);
11909 staticpro (&raw_keybuf); 11909 staticpro (&raw_keybuf);
11910 11910
11911 Qextended_command_history = intern ("extended-command-history"); 11911 Qextended_command_history = intern_c_string ("extended-command-history");
11912 Fset (Qextended_command_history, Qnil); 11912 Fset (Qextended_command_history, Qnil);
11913 staticpro (&Qextended_command_history); 11913 staticpro (&Qextended_command_history);
11914 11914
@@ -12211,7 +12211,7 @@ The command loop sets this to nil before each command,
12211and tests the value when the command returns. 12211and tests the value when the command returns.
12212Buffer modification stores t in this variable. */); 12212Buffer modification stores t in this variable. */);
12213 Vdeactivate_mark = Qnil; 12213 Vdeactivate_mark = Qnil;
12214 Qdeactivate_mark = intern ("deactivate-mark"); 12214 Qdeactivate_mark = intern_c_string ("deactivate-mark");
12215 staticpro (&Qdeactivate_mark); 12215 staticpro (&Qdeactivate_mark);
12216 12216
12217 DEFVAR_LISP ("command-hook-internal", &Vcommand_hook_internal, 12217 DEFVAR_LISP ("command-hook-internal", &Vcommand_hook_internal,
@@ -12236,7 +12236,7 @@ might happen repeatedly and make Emacs nonfunctional. */);
12236 DEFVAR_LISP ("echo-area-clear-hook", ..., 12236 DEFVAR_LISP ("echo-area-clear-hook", ...,
12237 doc: /* Normal hook run when clearing the echo area. */); 12237 doc: /* Normal hook run when clearing the echo area. */);
12238#endif 12238#endif
12239 Qecho_area_clear_hook = intern ("echo-area-clear-hook"); 12239 Qecho_area_clear_hook = intern_c_string ("echo-area-clear-hook");
12240 staticpro (&Qecho_area_clear_hook); 12240 staticpro (&Qecho_area_clear_hook);
12241 Fset (Qecho_area_clear_hook, Qnil); 12241 Fset (Qecho_area_clear_hook, Qnil);
12242 12242
@@ -12277,7 +12277,7 @@ and the minor mode maps regardless of `overriding-local-map'. */);
12277 12277
12278 DEFVAR_LISP ("special-event-map", &Vspecial_event_map, 12278 DEFVAR_LISP ("special-event-map", &Vspecial_event_map,
12279 doc: /* Keymap defining bindings for special events to execute at low level. */); 12279 doc: /* Keymap defining bindings for special events to execute at low level. */);
12280 Vspecial_event_map = Fcons (intern ("keymap"), Qnil); 12280 Vspecial_event_map = Fcons (intern_c_string ("keymap"), Qnil);
12281 12281
12282 DEFVAR_LISP ("track-mouse", &do_mouse_tracking, 12282 DEFVAR_LISP ("track-mouse", &do_mouse_tracking,
12283 doc: /* *Non-nil means generate motion events for mouse motion. */); 12283 doc: /* *Non-nil means generate motion events for mouse motion. */);