Mercurial > emacs
diff src/frame.c @ 105877:21bdda3ded62
* 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.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 06 Nov 2009 06:50:52 +0000 |
parents | d3531eb1d0d5 |
children | 341a779db1d0 |
line wrap: on
line diff
--- a/src/frame.c Fri Nov 06 06:39:33 2009 +0000 +++ b/src/frame.c Fri Nov 06 06:50:52 2009 +0000 @@ -4405,101 +4405,101 @@ void syms_of_frame () { - Qframep = intern ("framep"); + Qframep = intern_c_string ("framep"); staticpro (&Qframep); - Qframe_live_p = intern ("frame-live-p"); + Qframe_live_p = intern_c_string ("frame-live-p"); staticpro (&Qframe_live_p); - Qexplicit_name = intern ("explicit-name"); + Qexplicit_name = intern_c_string ("explicit-name"); staticpro (&Qexplicit_name); - Qheight = intern ("height"); + Qheight = intern_c_string ("height"); staticpro (&Qheight); - Qicon = intern ("icon"); + Qicon = intern_c_string ("icon"); staticpro (&Qicon); - Qminibuffer = intern ("minibuffer"); + Qminibuffer = intern_c_string ("minibuffer"); staticpro (&Qminibuffer); - Qmodeline = intern ("modeline"); + Qmodeline = intern_c_string ("modeline"); staticpro (&Qmodeline); - Qonly = intern ("only"); + Qonly = intern_c_string ("only"); staticpro (&Qonly); - Qwidth = intern ("width"); + Qwidth = intern_c_string ("width"); staticpro (&Qwidth); - Qgeometry = intern ("geometry"); + Qgeometry = intern_c_string ("geometry"); staticpro (&Qgeometry); - Qicon_left = intern ("icon-left"); + Qicon_left = intern_c_string ("icon-left"); staticpro (&Qicon_left); - Qicon_top = intern ("icon-top"); + Qicon_top = intern_c_string ("icon-top"); staticpro (&Qicon_top); - Qleft = intern ("left"); + Qleft = intern_c_string ("left"); staticpro (&Qleft); - Qright = intern ("right"); + Qright = intern_c_string ("right"); staticpro (&Qright); - Quser_position = intern ("user-position"); + Quser_position = intern_c_string ("user-position"); staticpro (&Quser_position); - Quser_size = intern ("user-size"); + Quser_size = intern_c_string ("user-size"); staticpro (&Quser_size); - Qwindow_id = intern ("window-id"); + Qwindow_id = intern_c_string ("window-id"); staticpro (&Qwindow_id); #ifdef HAVE_X_WINDOWS - Qouter_window_id = intern ("outer-window-id"); + Qouter_window_id = intern_c_string ("outer-window-id"); staticpro (&Qouter_window_id); #endif - Qparent_id = intern ("parent-id"); + Qparent_id = intern_c_string ("parent-id"); staticpro (&Qparent_id); - Qx = intern ("x"); + Qx = intern_c_string ("x"); staticpro (&Qx); - Qw32 = intern ("w32"); + Qw32 = intern_c_string ("w32"); staticpro (&Qw32); - Qpc = intern ("pc"); + Qpc = intern_c_string ("pc"); staticpro (&Qpc); - Qmac = intern ("mac"); + Qmac = intern_c_string ("mac"); staticpro (&Qmac); - Qns = intern ("ns"); + Qns = intern_c_string ("ns"); staticpro (&Qns); - Qvisible = intern ("visible"); + Qvisible = intern_c_string ("visible"); staticpro (&Qvisible); - Qbuffer_predicate = intern ("buffer-predicate"); + Qbuffer_predicate = intern_c_string ("buffer-predicate"); staticpro (&Qbuffer_predicate); - Qbuffer_list = intern ("buffer-list"); + Qbuffer_list = intern_c_string ("buffer-list"); staticpro (&Qbuffer_list); - Qburied_buffer_list = intern ("buried-buffer-list"); + Qburied_buffer_list = intern_c_string ("buried-buffer-list"); staticpro (&Qburied_buffer_list); - Qdisplay_type = intern ("display-type"); + Qdisplay_type = intern_c_string ("display-type"); staticpro (&Qdisplay_type); - Qbackground_mode = intern ("background-mode"); + Qbackground_mode = intern_c_string ("background-mode"); staticpro (&Qbackground_mode); - Qnoelisp = intern ("noelisp"); + Qnoelisp = intern_c_string ("noelisp"); staticpro (&Qnoelisp); - Qtty_color_mode = intern ("tty-color-mode"); + Qtty_color_mode = intern_c_string ("tty-color-mode"); staticpro (&Qtty_color_mode); - Qtty = intern ("tty"); + Qtty = intern_c_string ("tty"); staticpro (&Qtty); - Qtty_type = intern ("tty-type"); + Qtty_type = intern_c_string ("tty-type"); staticpro (&Qtty_type); - Qface_set_after_frame_default = intern ("face-set-after-frame-default"); + Qface_set_after_frame_default = intern_c_string ("face-set-after-frame-default"); staticpro (&Qface_set_after_frame_default); - Qfullwidth = intern ("fullwidth"); + Qfullwidth = intern_c_string ("fullwidth"); staticpro (&Qfullwidth); - Qfullheight = intern ("fullheight"); + Qfullheight = intern_c_string ("fullheight"); staticpro (&Qfullheight); - Qfullboth = intern ("fullboth"); + Qfullboth = intern_c_string ("fullboth"); staticpro (&Qfullboth); - Qmaximized = intern ("maximized"); + Qmaximized = intern_c_string ("maximized"); staticpro (&Qmaximized); - Qx_resource_name = intern ("x-resource-name"); + Qx_resource_name = intern_c_string ("x-resource-name"); staticpro (&Qx_resource_name); - Qx_frame_parameter = intern ("x-frame-parameter"); + Qx_frame_parameter = intern_c_string ("x-frame-parameter"); staticpro (&Qx_frame_parameter); - Qterminal = intern ("terminal"); + Qterminal = intern_c_string ("terminal"); staticpro (&Qterminal); - Qterminal_live_p = intern ("terminal-live-p"); + Qterminal_live_p = intern_c_string ("terminal-live-p"); staticpro (&Qterminal_live_p); #ifdef HAVE_NS - Qns_parse_geometry = intern ("ns-parse-geometry"); + Qns_parse_geometry = intern_c_string ("ns-parse-geometry"); staticpro (&Qns_parse_geometry); #endif @@ -4508,7 +4508,7 @@ for (i = 0; i < sizeof (frame_parms) / sizeof (frame_parms[0]); i++) { - Lisp_Object v = intern (frame_parms[i].name); + Lisp_Object v = intern_c_string (frame_parms[i].name); if (frame_parms[i].variable) { *frame_parms[i].variable = v; @@ -4613,7 +4613,7 @@ in `delete-frame-functions' (indirectly) calls `delete-frame' recursively). */); Vdelete_frame_functions = Qnil; - Qdelete_frame_functions = intern ("delete-frame-functions"); + Qdelete_frame_functions = intern_c_string ("delete-frame-functions"); staticpro (&Qdelete_frame_functions); DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame,