1. 02 Jan, 2011 1 commit
  2. 27 Dec, 2010 1 commit
    • Andreas Schwab's avatar
      Remove unused declarations · 2f7c71a1
      Andreas Schwab authored
      * src/buffer.c: Remove unused declarations.
      * src/buffer.h: Likewise.
      * src/charset.h: Likewise.
      * src/composite.h: Likewise.
      * src/dispextern.h: Likewise.
      * src/dispnew.c: Likewise.
      * src/font.h: Likewise.
      * src/fontset.c: Likewise.
      * src/fontset.h: Likewise.
      * src/intervals.h: Likewise.
      * src/keymap.h: Likewise.
      * src/lisp.h: Likewise.
      * src/syntax.c: Likewise.
      * src/syntax.h: Likewise.
      * src/termhooks.h: Likewise.
      * src/window.h: Likewise.
      * src/xsettings.h: Likewise.
      * src/xterm.c: Likewise.
      * src/xterm.h: Likewise.
      
      * src/chartab.c (sub_char_table_ref): Make static.
      * src/dispnew.c (line_hash_code, required_matrix_height)
      (required_matrix_width): Likewise.
      * src/eval.c (interactive_p, apply_lambda): Likewise.
      * src/fns.c (string_make_multibyte, copy_hash_table, hash_clear):
      Likewise.
      * src/font.c (QCadstyle, QCregistry, font_make_spec)
      (font_parse_fcname, font_encode_char, font_at): Likewise.
      * src/frame.c (x_frame_get_arg): Likewise.
      * src/keymap.c (get_keyelt): Likewise.
      * src/lread.c (read_filtered_event): Likewise.
      * src/print.c (write_string_1): Likewise.
      * src/window.c (delete_window, window_height, window_width)
      (foreach_window): Likewise.
      * src/xrdb.c (x_get_customization_string, x_get_resource): Likewise.
      * src/xterm.c (x_scroll_bar_clear, xembed_set_info)
      (xembed_send_message): Likewise.
      
      * src/eval.c (run_hook_list_with_args): Delete.
      * src/font.c (font_unparse_gtkname, font_update_lface): Likewise.
      * src/terminal.c (get_terminal_param): Likewise.
      * src/xterm.c (x_alloc_lighter_color_for_widget): Likewise.
      2f7c71a1
  3. 20 Dec, 2010 1 commit
  4. 03 Dec, 2010 1 commit
  5. 31 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Fix bug#7299; default value of tool-bar-mode in without-x builds. · c8c59954
      Glenn Morris authored
      * src/frame.c (syms_of_frame) <tool-bar-mode>:
      Default to nil if !HAVE_WINDOW_SYSTEM.
      
      * lisp/cus-start.el: Handle standard values via a keyword.
      Only set version property if specified.
      (cursor-in-non-selected-windows, menu-bar-mode)
      (tool-bar-mode, show-trailing-whitespace):
      Do not specify standard values.
      (transient-mark-mode, temporary-file-directory): Use :standard.
      c8c59954
  6. 29 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Remove duplicate Lisp definitions of define-minor-mode variables defined in C. · 9d794026
      Glenn Morris authored
      * lisp/abbrev.el (abbrev-mode):
      * lisp/composite.el (auto-composition-mode):
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/simple.el (transient-mark-mode):
      * lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
      that they do not define the associated variables twice.
      * lisp/simple.el (transient-mark-mode): Remove defvar.
      * lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
      * lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
      Handle multiple groups, and also custom-delayed-init-variables.
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
      
      * src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
      * src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
      9d794026
  7. 23 Oct, 2010 1 commit
  8. 22 Oct, 2010 2 commits
  9. 18 Oct, 2010 1 commit
  10. 17 Sep, 2010 2 commits
  11. 08 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const char* instead of char*. · 675e2c69
      Dan Nicolaescu authored
      * src/xterm.c (x_create_toolkit_scroll_bar):
      * src/xfont.c (xfont_list_pattern):
      * src/xfns.c (x_default_scroll_bar_color_parameter)
      (xic_create_fontsetname, x_default_font_parameter)
      (x_screen_planes):
      * src/xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
      (store_mode_line_string, decode_mode_spec, display_string):
      * src/menu.c (digest_single_submenu):
      * src/keymap.h (initial_define_key, initial_define_lispy_key):
      * src/keymap.c (initial_define_key, initial_define_lispy_key):
      * src/image.c (image_error, image_keyword):
      * src/gtkutil.h (xg_create_widget, xg_create_scroll_bar):
      * src/gtkutil.c (xg_create_widget, xg_create_scroll_bar):
      * src/ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
      (ftfont_list, ftfont_match):
      * src/frame.c (frame_parm_table):
      * src/font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/emacs.c (argmatch):
      * src/dispextern.h (struct it):
      * src/coding.c (ENCODE_DESIGNATION):
      * src/charset.c (define_charset_internal): Use const.
      675e2c69
  12. 06 Aug, 2010 1 commit
  13. 05 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove extern declarations in .c files, .h files have them. · 04bab72c
      Dan Nicolaescu authored
      * src/data.c:
      * src/dired.c:
      * src/editfns.c:
      * src/filelock.c:
      * src/fns.c:
      * src/font.c:
      * src/fontset.c:
      * src/frame.c:
      * src/fringe.c:
      * src/ftfont.c:
      * src/gtkutil.c:
      * src/indent.c:
      * src/keyboard.c:
      * src/keymap.c:
      * src/lread.c:
      * src/menu.c:
      * src/print.c:
      * src/search.c:
      * src/sound.c:
      * src/window.c:
      * src/xdisp.c:
      * src/xfaces.c:
      * src/xfns.c:
      * src/xfont.c:
      * src/xftfont.c:
      * src/xmenu.c:
      * src/xterm.c: Remove declarations.
      04bab72c
  14. 29 Jul, 2010 2 commits
    • Jan Djärv's avatar
      Add ability to put Gtk+ tool bar on the left/right/bottom or top. Default top. · bfeabdc3
      Jan Djärv authored
      * lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu-customize-enable-left)
      (menu-bar-showhide-tool-bar-menu-customize-disable)
      (menu-bar-showhide-tool-bar-menu-customize-enable-right)
      (menu-bar-showhide-tool-bar-menu-customize-enable-top)
      (menu-bar-showhide-tool-bar-menu-customize-enable-bottom): New functions
      (menu-bar-showhide-tool-bar-menu): If tool bar is moveable,
      make a menu for Options => toolbar that can move it.
      
      * src/frame.c (Qtool_bar_position): New variable.
      (make_frame): Set tool_bar_position to Qtop.
      (frame_parms): Add tool-bar-position.
      (x_report_frame_params): Store tool_bar_position.
      (x_set_fringe_width): Reset wm size hint after fringe changes.
      
      * src/frame.h (struct frame): Add tool_bar_position.
      (Qbottom): Declare.
      
      * src/gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
      (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
      (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
      (xg_create_frame_widgets): Create a hobox for placing widgets
      vertically.  Use gtk_box_pack_start.
      (xg_height_or_width_changed): Renamed from xg_height_changed.
      (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
      (xg_update_frame_menubar, free_frame_menubar): Change to
      xg_height_or_width_changed.
      (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
      size correctly.  Remove hardcoded 4, instead use handlebox size -
      toolbar size.
      (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
      size correctly.  Use handlebox size + toolbar size as additional
      size.
      (xg_pack_tool_bar): POS is a new parameter.
      Set orientation of tool bar based on pos.
      Only make handlebox_widget if NULL.
      Check if tool bar goes to vbox or hbox depending on pos.
      (xg_update_tool_bar_sizes): New function.
      (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
      height, call xg_update_tool_bar_sizes instead.
      (free_frame_tool_bar): Remove from hbox or vbox depending on
      toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
      (xg_change_toolbar_position): New function.
      
      * src/gtkutil.h (xg_change_toolbar_position): Declare.
      
      * src/window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
      and FRAME_TOOLBAR_LEFT_WIDTH.
      
      * src/xfns.c (x_set_tool_bar_position): New function.
      (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
      (x_frame_parm_handlers): Add x_set_tool_bar_position.
      (syms_of_xfns): if USE_GTK, provide move-toolbar.
      
      * src/xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
      
      * src/xterm.h (struct x_output): Add toolbar_top_height,
      toolbar_bottom_height, toolbar_left_width, toolbar_right_width.  Remove
      toolbar_height.
      if USE_GTK: Add hbox_widget and toolbar_in_hbox.
      (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
      (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
      (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
      bfeabdc3
    • Dan Nicolaescu's avatar
      Remove extern declarations from .c files, and them to .h files. · e6cba650
      Dan Nicolaescu authored
      * src/xsmfns.c (Vuser_login_name):
      * src/xrdb.c (Vdouble_click_time):
      * src/xfaces.c (xic_create_fontsetname):
      * src/w32select.c (waiting_for_input):
      * src/print.c (minibuffer_auto_raise):
      * src/msdos.c (Qhelp_echo):
      * src/macros.c (real_this_command):
      * src/keymap.c (Voverriding_local_map):
      * src/xterm.c (poll_for_input_1, gray_bitmap_width)
      (gray_bitmap_height, gray_bitmap_bits;
      * src/xmenu.c ( Voverriding_local_map)
      (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
      (use_file_dialog, Xt_app_con):
      * src/xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
      (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
      (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
      (Qtool_bar_lines, ignore_mouse_drag_p):
      * src/minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
      (Qrear_nonsticky, nconc2):
      * src/keyboard.c (current_global_map, minibuf_level, Qmenu_item)
      (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
      (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
      * src/fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
      (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
      * src/eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
      (gc_in_progress):
      * src/doc.c (Voverriding_local_map, Qremap):
      * src/dired.c (completion_ignore_case, Qcompletion_ignore_case)
      (Vcompletion_regexp_list):
      * src/coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
      (Qcompletion_ignore_case):
      * src/callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
      (Vhistory_length, Vthis_original_command, real_this_command)
      (Qface, Qminibuffer_prompt, history_delete_duplicates):
      * src/image.c (Qrisky_local_variable):
      * src/fontset.c (QCname):
      * src/fns.c (minibuffer_auto_raise, QCname):
      * src/dispnew.c (char_ins_del_cost):
      * src/composite.c (font_fill_lglyph_metrics):
      * src/cmds.c (Qface, Vtranslation_table_for_input):
      * src/charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
      * src/ccl.c (charset_unicode):
      * src/callproc.c (Vtemporary_file_directory):
      * src/buffer.c (emacs_strerror): Remove extern declarations.
      
      Remove extern declarations from .c files, and them to .h files.
      * src/keyboard.h (Qhelp_echo, waiting_for_input)
      (input_available_clear_time, ignore_mouse_drag_p)
      (Vdouble_click_time, real_this_command, Vthis_original_command):
      * src/keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
      (Voverriding_local_map_menu_flag):
      * src/lisp.h (Qinteractive_form, use_file_dialog)
      (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
      (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
      (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
      (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
      (Qfunction, debug_on_next_call, Qfield)
      (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
      (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
      (Qfile_directory_p, Qinsert_file_contents)
      (Qcompletion_ignore_case, Qcompletion_ignore_case)
      (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
      (history_delete_duplicates, minibuffer_auto_raise, Qonly)
      (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
      (Qminibuffer_prompt)
      (Vtemporary_file_directory,char_ins_del_vector, Qface):
      * src/xterm.h (gray_bitmap_width, gray_bitmap_height)
      (gray_bitmap_bits, xic_create_fontsetname):
      * src/coding.h (Vtranslation_table_for_input): Add extern declarations.
      
      * src/data.c (Qwindow): Make non-static, used from other files too.
      * src/frame.c (validate_x_resource_name): Remove shadow definition for i.
      e6cba650
  15. 27 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const, move declarations to header files. · eec47d6b
      Dan Nicolaescu authored
      * src/buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
      
      * src/character.c (strwidth, parse_str_to_multibyte): Add const.
      
      * src/character.h (strwidth, parse_str_to_multibyte): Likewise.
      
      * src/charset.c (add_to_log): Remove declaration.
      
      * src/composite.c (syms_of_composite): Remove local extern declarations.
      
      * src/data.c (Finteractive_form): Use const.
      
      * src/dired.c (scmp): Add const.
      (directory_files_internal): Remove local extern declaration.
      
      * src/dispextern.h (add_to_log): Remove declaration.
      (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
      (x_frame_get_and_record_arg, x_default_parameter): Add const.
      
      * src/dispnew.c: Remove duplicate #include <unistd.h>.
      (update_window, update_frame_1, init_display): Remove local extern
      declarations.
      
      * src/editfns.c (region_limit, syms_of_editfns): Remove local extern
      declarations.
      
      * src/emacs.c (main): Remove local extern declaration.
      
      * src/font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
      (QCheight, QCsize, QCname): Remove declarations.
      
      * src/frame.c (x_get_resource_string, x_get_string_resource)
      (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
      (x_default_parameter): Use const.
      
      * src/image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
      (QCdata, QCtype, Qcenter): Remove declarations.
      
      * src/keyboard.h (do_mouse_tracking): Add declaration.
      
      * src/minibuf.c (Qmouse_face): Remove declaration.
      
      * src/msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
      
      * src/xdisp.c (do_mouse_tracking): Remove declaration.
      (add_to_log): Use const.
      
      * src/xfaces.c (Qmouse_face): Remove declaration.
      (face_color_gray_p, tty_defined_color, defined_color)
      (face_color_gray_p, face_color_supported_p). Add const.
      
      * src/xfns.c: Include xlwmenu.h when USE_LUCID.
      (x_defined_color, xic_set_xfontset): Use const.
      (Fx_hide_tip): Remove local extern declaration.
      
      * src/xselect.c (selection_data_to_lisp_data)
      (x_property_data_to_lisp):
      * src/xrdb.c (x_get_string_resource, file_p)
      (x_get_customization_string, magic_file_p, search_magic_path)
      (get_system_app, get_user_app, x_load_resources, x_get_resource)
      (x_get_string_resource): Use const.
      
      * src/xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
      (x_text_icon, x_check_errors, x_connection_closed): Use const.
      
      * src/xterm.h (x_get_customization_string, x_load_resources)
      (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
      (x_check_errors, x_property_data_to_lisp, defined_color)
      (xic_set_xfontset, x_defined_color): Use const.
      eec47d6b
  16. 23 Jul, 2010 1 commit
    • Juanma Barranquero's avatar
      Remove unused static functions. · 33ac0414
      Juanma Barranquero authored
      * alloc.c (free_float)
      * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse)
      * frame.c (delete_frame_handler)
      * ralloc.c (reorder_bloc)
      * w32menu.c (menubar_id_to_frame, add_left_right_boundary)
      33ac0414
  17. 17 Jul, 2010 1 commit
  18. 10 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Adapt terminal frames to latest menu-bar changes. · 48104462
      Chong Yidong authored
      * frame.c (make_frame): Initialize menu_bar_lines and
      tool_bar_lines members.
      (make_initial_frame, make_terminal_frame): Initialize
      menu_bar_lines using value of menu-bar-mode.
      
      * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
      48104462
  19. 08 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert DEFUNs to standard C. · 5842a27b
      Dan Nicolaescu authored
      * src/alloc.c: Convert DEFUNs to standard C.
      * src/buffer.c:
      * src/bytecode.c:
      * src/callint.c:
      * src/callproc.c:
      * src/casefiddle.c:
      * src/casetab.c:
      * src/category.c:
      * src/character.c:
      * src/charset.c:
      * src/chartab.c:
      * src/cmds.c:
      * src/coding.c:
      * src/composite.c:
      * src/data.c:
      * src/dbusbind.c:
      * src/dired.c:
      * src/dispnew.c:
      * src/doc.c:
      * src/dosfns.c:
      * src/editfns.c:
      * src/emacs.c:
      * src/eval.c:
      * src/fileio.c:
      * src/filelock.c:
      * src/floatfns.c:
      * src/fns.c:
      * src/font.c:
      * src/fontset.c:
      * src/frame.c:
      * src/fringe.c:
      * src/image.c:
      * src/indent.c:
      * src/insdel.c:
      * src/keyboard.c:
      * src/keymap.c:
      * src/lread.c:
      * src/macros.c:
      * src/marker.c:
      * src/menu.c:
      * src/minibuf.c:
      * src/msdos.c:
      * src/nsfns.m:
      * src/nsmenu.m:
      * src/nsselect.m:
      * src/print.c:
      * src/process.c:
      * src/search.c:
      * src/sound.c:
      * src/syntax.c:
      * src/term.c:
      * src/terminal.c:
      * src/textprop.c:
      * src/undo.c:
      * src/w16select.c:
      * src/w32console.c:
      * src/w32fns.c:
      * src/w32font.c:
      * src/w32menu.c:
      * src/w32proc.c:
      * src/w32select.c:
      * src/window.c:
      * src/xdisp.c:
      * src/xfaces.c:
      * src/xfns.c:
      * src/xmenu.c:
      * src/xselect.c:
      * src/xsettings.c:
      * src/xsmfns.c: Likewise.
      5842a27b
  20. 05 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert declarations or definitions to standard C. · dd4c5104
      Dan Nicolaescu authored
      * src/xsmfns.c (smc_save_yourself_CB, smc_error_handler):
      * src/xrdb.c (get_system_name):
      * src/window.c (shrink_windows):
      * src/syntax.c (forw_comment):
      * src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
      (ins_del_costs):
      * src/mem-limits.h (start_of_data):
      * src/lread.c (readevalloop):
      * src/gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
      (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
      * src/frame.c (x_get_focus_frame):
      * src/floatfns.c (fmod_float):
      * src/fileio.c (choose_write_coding_system):
      * src/emacs.c (fatal_error_signal, init_cmdargs, argmatch)
      (malloc_initialize_hook, sort_args, synchronize_locale):
      * src/doprnt.c (doprnt):
      * src/dired.c (compile_pattern):
      * src/data.c (fmod_float):
      * src/chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
      (map_char_table_for_charset):
      * src/charset.c (define_charset_internal):
      * src/alloc.c (Fgarbage_collect): Convert declarations or definitions
      to standard C.
      dd4c5104
  21. 04 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert (most) functions in src to standard C. · 971de7fb
      Dan Nicolaescu authored
      * src/alloc.c: Convert function definitions to standard C.
      * src/atimer.c:
      * src/bidi.c:
      * src/bytecode.c:
      * src/callint.c:
      * src/callproc.c:
      * src/casefiddle.c:
      * src/casetab.c:
      * src/category.c:
      * src/ccl.c:
      * src/character.c:
      * src/charset.c:
      * src/chartab.c:
      * src/cmds.c:
      * src/coding.c:
      * src/composite.c:
      * src/data.c:
      * src/dbusbind.c:
      * src/dired.c:
      * src/dispnew.c:
      * src/doc.c:
      * src/doprnt.c:
      * src/ecrt0.c:
      * src/editfns.c:
      * src/fileio.c:
      * src/filelock.c:
      * src/filemode.c:
      * src/fns.c:
      * src/font.c:
      * src/fontset.c:
      * src/frame.c:
      * src/fringe.c:
      * src/ftfont.c:
      * src/ftxfont.c:
      * src/gtkutil.c:
      * src/indent.c:
      * src/insdel.c:
      * src/intervals.c:
      * src/keymap.c:
      * src/lread.c:
      * src/macros.c:
      * src/marker.c:
      * src/md5.c:
      * src/menu.c:
      * src/minibuf.c:
      * src/prefix-args.c:
      * src/print.c:
      * src/ralloc.c:
      * src/regex.c:
      * src/region-cache.c:
      * src/scroll.c:
      * src/search.c:
      * src/sound.c:
      * src/strftime.c:
      * src/syntax.c:
      * src/sysdep.c:
      * src/termcap.c:
      * src/terminal.c:
      * src/terminfo.c:
      * src/textprop.c:
      * src/tparam.c:
      * src/undo.c:
      * src/unexelf.c:
      * src/window.c:
      * src/xfaces.c:
      * src/xfns.c:
      * src/xfont.c:
      * src/xftfont.c:
      * src/xgselect.c:
      * src/xmenu.c:
      * src/xrdb.c:
      * src/xselect.c:
      * src/xsettings.c:
      * src/xsmfns.c:
      * src/xterm.c: Likewise.
      971de7fb
  22. 02 Jul, 2010 2 commits
    • Chong Yidong's avatar
      Fix faulty `if' statement in delete_frame. · 54ee7410
      Chong Yidong authored
      * frame.c (Qtooltip): New var.
      (delete_frame): Use it.  Fix faulty if statement.  Don't update
      mode line for tooltip frames.  Suggested by Martin Rudalics.
      
      * xfns.c (x_create_tip_frame):
      * w32fns.c (x_create_tip_frame): Use it.
      54ee7410
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  23. 01 Jul, 2010 1 commit
    • Chong Yidong's avatar
      Fix application of default-frame-alist (Bug#5378). · c1ef4455
      Chong Yidong authored
      * lisp/frame.el (make-frame): Add default-frame-alist to the PARAMETERS
      argument passed to frame-creation-function (Bug#5378).
      
      * lisp/faces.el (x-handle-named-frame-geometry)
      (x-handle-reverse-video, x-create-frame-with-faces)
      (face-set-after-frame-default, tty-create-frame-with-faces): Don't
      separately consult default-frame-alist.  It is now passed as the
      PARAMETER argument.
      
      * src/frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
      check default-frame-alist.
      c1ef4455
  24. 27 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249). · 6431f2e6
      Chong Yidong authored
      Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
      `default-frame-alist' and `initial-frame-alist' at startup.
      Instead, use X resources to update the `menu-bar-mode' and
      `tool-bar-mode' variables at startup, and use them as defaults during
      frame creation.
      
      * lisp/frame.el (frame-notice-user-settings): Don't change
      default-frame-alist based on menu-bar-mode and tool-bar-mode, or
      vice versa.
      
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
      Set init-value to t.
      
      * lisp/startup.el (command-line): Use X resources to set the value of
      menu-bar-mode and tool-bar-mode, before calling frame-initialize.
      
      * src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
      
      * src/w32fns.c (Fx_create_frame):
      * src/nsfns.m (Fx_create_frame): Likewise.
      
      * src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
      menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
      tool-bar-mode, which are now set using these X resources at
      startup, to determine the defaults.
      6431f2e6
  25. 25 Jun, 2010 2 commits
    • Chong Yidong's avatar
      Revert last change. · fac580eb
      Chong Yidong authored
      fac580eb
    • Chong Yidong's avatar
      Change initial-frame-alist and default-frame-alist defaults (Bug#2249). · a9fdbaae
      Chong Yidong authored
      Since the menu-bar and tool-bar are now unconditionally turned on by
      default, we can let the defcustom defaults reflect that.
      
      * frame.el (initial-frame-alist): Give default value entries for
      menu-bar-lines and tool-bar-lines consistent with the startup
      default (Bug#2249).
      
      * frame.c (Vdefault_frame_alist): Give default value entries for
      menu-bar-lines and tool-bar-lines consistent with the startup
      default (Bug#2249).
      a9fdbaae
  26. 20 Apr, 2010 1 commit
    • Stefan Monnier's avatar
      Make variable forwarding explicit rather the using special values. · ce5b453a
      Stefan Monnier authored
      Basically, this makes the structure of buffer-local values and object
      forwarding explicit in the type of Lisp_Symbols rather than use
      special Lisp_Objects for that.  This tends to lead to slightly more
      verbose code, but is more C-like, simpler, and makes it easier to make
      sure we handled all cases, among other things by letting the compiler
      help us check it.
      * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
      Removing forwarding objects.
      (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
      (struct Lisp_Symbol): Make the various forms of variable-forwarding
      explicit rather than hiding them inside Lisp_Object "values".
      (XFWDTYPE): New macro.
      (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
      (XBUFFER_LOCAL_VALUE): Remove.
      (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
      (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
      (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
      (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
      (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
      Remove the Lisp_Misc_* header.
      (struct Lisp_Buffer_Local_Value): Redefine.
      (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
      (struct Lisp_Misc_Any): Add filler to get the right size.
      (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
      Lisp_Intfwd.
      (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
      (DEFVAR_KBOARD): Allocate a forwarding object.
      * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
      (let_shadows_global_binding_p): New function.
      (union Lisp_Val_Fwd): New type.
      (make_blv): New function.
      (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
      (store_symval_forwarding, swap_in_global_binding, Fboundp)
      (swap_in_symval_forwarding, find_symbol_value, Fset)
      (let_shadows_buffer_binding_p, set_internal, default_value)
      (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
      (Fkill_local_variable, Fmake_variable_frame_local)
      (Flocal_variable_p, Flocal_variable_if_set_p)
      (Fvariable_binding_locus):
      * xdisp.c (select_frame_for_redisplay):
      * lread.c (Fintern, Funintern, init_obarray, defvar_int)
      (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
      * frame.c (store_frame_param):
      * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
      * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
      value structure.
      * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
      (clone_per_buffer_values): Only adjust markers into the current buffer.
      (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
      (Fbuffer_local_value, set_buffer_internal_1)
      (swap_out_buffer_local_variables):
      Adapt to the new symbol value structure.
      (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
      (defvar_per_buffer): Take a new arg for the fwd object.
      (buffer_lisp_local_variables): Return a proper alist (different fix
      for bug#4138).
      * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
      (Fgarbage_collect): Don't handle buffer_defaults specially.
      (mark_object): Handle new symbol value structure rather than the old
      special Lisp_Misc_* objects.
      (gc_sweep) <symbols>: Free also the buffer-local-value objects.
      * term.c (set_tty_color_mode):
      * bidi.c (bidi_initialize): Don't access the ->value field directly.
      * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
      a buffer_local_flags.
      * print.c (print_object): Get rid of impossible forwarding objects.
      ce5b453a
  27. 22 Mar, 2010 1 commit
    • Jan Djärv's avatar
      bug #5736: Allow X-resource menuBar to take on/off as documented. · 93318cbd
      Jan Djärv authored
      * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
      
      * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
      
      * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
      
      * xresources.texi (Table of Resources): Clarify toolBar number
      for Gtk+.
      
      * frames.texi (Menu Bars): menuBarLines => menuBar (bug#5736).
      93318cbd
  28. 15 Mar, 2010 1 commit
  29. 12 Mar, 2010 1 commit
  30. 29 Jan, 2010 1 commit
  31. 13 Jan, 2010 1 commit
  32. 09 Dec, 2009 1 commit
    • Andreas Schwab's avatar
      * cmds.c: Include "frame.h". · 2cc7b62f
      Andreas Schwab authored
      * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
      * frame.h: Move declaration of delete_frame outside of
      HAVE_WINDOW_SYSTEM.
      2cc7b62f
  33. 29 Nov, 2009 1 commit
  34. 27 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Don't crash if an X terminal is deleted with force == t. · ece2d4ed
      Jan Djärv authored
      * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
      is NULL.
      
      * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
      
      * frame.c (frame_make_pointer_invisible)
      (frame_make_pointer_visible): Just return if there isn't any selected
      frame.
      ece2d4ed
  35. 24 Nov, 2009 1 commit