1. 30 Jul, 2010 1 commit
  2. 29 Jul, 2010 19 commits
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 59df9fdd
      Juanma Barranquero authored
      59df9fdd
    • Jan D's avatar
      Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf · 1c97e857
      Jan D authored
      * configure.in: Check for dirent.h
      
      * dired.c, sysdep.c: test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR
      
      * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
        s/msdos.h, s/usg5-4.h: don't define SYSV_SYSTEM_DIR
      
      * sed2v2.inp (HAVE_DIRENT_H): Edit to 1
      1c97e857
    • Dan Nicolaescu's avatar
      Rename s/usg5-4.h -> s/usg5-4-common.h. · 1b231651
      Dan Nicolaescu authored
      * s/usg5-4.h: Rename file to ...
      * src/s/usg5-4-common.h: ... this for consistency with what we do for BSD.
      * src/s/unixware.h:
      * src/s/sol2-6.h:
      * src/s/irix6-5.h: Update includes accordingly.
      1b231651
    • Jan D's avatar
      2ebf1083
    • Jan Djärv's avatar
      Add doc and NEWS for tool-bar-position. · 8b2dd508
      Jan Djärv authored
      * doc/emacs/frames.texi (Tool Bars): Add doc for tool-bar-position.
      
      * doc/lispref/frames.texi (Layout Parameters): Add doc for tool-bar-position.
      8b2dd508
    • 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
    • Chong Yidong's avatar
      Update package-x to latest package.el changes. · 063e5294
      Chong Yidong authored
      * emacs-lisp/package-x.el (package--make-rss-entry):
      (package-maint-add-news-item, package--update-news)
      (package-upload-buffer-internal): New arg ARCHIVE-URL.
      
      * emacs-lisp/package.el (package-archive-url): Rename from
      package-archive-id.
      (package-install): Doc fix.
      (package-download-single, package-download-tar, package-install)
      (package-menu-view-commentary): Callers changed.
      063e5294
    • Dan Nicolaescu's avatar
      Make lisp_time_argument work on all systems. · 26469a38
      Dan Nicolaescu authored
      * src/lisp.h (lisp_time_argument): Move declaration ...
      * src/systime.h (lisp_time_argument): ... here
      * src/editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)
      26469a38
    • Michael Albinus's avatar
      bace45fe
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-start-file-process): Check only for · 683cc385
      Michael Albinus authored
      `remote-tty' process property.
      (tramp-open-shell): Don't check for tty.
      (tramp-open-connection-setup-interactive-shell): Set `remote-tty'
      process property.
      
      * progmodes/gdb-mi.el (gdb-init-1): Check also for tty on a remote
      host.
      683cc385
    • Jan Djärv's avatar
      Fix some stuff that didn't compile. · 8848b728
      Jan Djärv authored
      * frame.h (Qtty_color_mode): Move declaration out of HAVE_WINDOW_SYSTEM.
      
      * vm-limit.c (POINTER): Add typedef for it.
      (start_of_data): Change return type from POINTER to char *.
      8848b728
    • Dan Nicolaescu's avatar
      * src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. · 0441987e
      Dan Nicolaescu authored
      Remove reference to __osf__, unused.
      0441987e
    • Dan Nicolaescu's avatar
      * src/mem-limits.h: Remove duplicated includes. · 56a000c7
      Dan Nicolaescu authored
      (NULL): Remove definition, unused.
      (POINTER): Remove definition.
      (start_of_data): Use char* in prototype, as the function
      definition does.
      56a000c7
    • 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
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      3a876c9d
    • Dan Nicolaescu's avatar
      Clean up unexec.c, remove references to unused code. · 76fd1ee9
      Dan Nicolaescu authored
      * nt/config.nt: Remove code referring to NO_REMAP, unused.
      
      * src/unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
      SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
      * src/s/usg5-4.h (COFF):
      * src/s/template.h:
      * src/s/msdos.h (COFF, NO_REMAP):
      * src/s/ms-w32.h (NO_REMAP):
      * src/s/hpux10-20.h (NO_REMAP):
      * src/m/sparc.h (SEGMENT_MASK):
      * src/m/m68k.h (NO_REMAP):
      * src/m/intel386.h (SEGMENT_MASK):
      * src/m/arm.h (NO_REMAP):
      * src/m/alpha.h (COFF):
      * src/m/template.h: Remove references to unused defines.
      76fd1ee9
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 087b38a0
      Juanma Barranquero authored
      087b38a0
    • Juanma Barranquero's avatar
  3. 28 Jul, 2010 5 commits
    • Phil Hagelberg's avatar
      Add support for non-default package repositories. · bc44bef7
      Phil Hagelberg authored
      * lisp/emacs-lisp/package.el (package-archive-base): Var deleted.
      (package-archives): New variable.
      (package-archive-contents): Doc fix.
      (package-load-descriptor): Do nothing if descriptor file is
      missing.
      (package--write-file-no-coding): New function.
      (package-unpack-single): Use it.
      (package-archive-id): New function.
      (package-download-single, package-download-tar)
      (package-menu-view-commentary): Use it.
      (package-installed-p): Make second argument optional.
      (package-read-all-archive-contents): New function.
      (package-initialize): Use it.
      (package-read-archive-contents): Add ARCHIVE argument.
      (package--add-to-archive-contents): New function.
      (package-install): Don't call package-read-archive-contents.
      (package--download-one-archive): Store archive file in a
      subdirectory of package-user-dir.
      (package-menu-execute): Remove spurious line movement.
      
      * lisp/emacs-lisp/package.el (package-load-list, package-archives)
      (package-archive-contents, package-user-dir)
      (package-directory-list, package--builtins, package-alist)
      (package-activated-list, package-obsolete-alist): Mark as risky.
      bc44bef7
    • Jan Djärv's avatar
      Add tool bar style text-image-horiz (text to the left of the image). · 8a52f00a
      Jan Djärv authored
      * lisp/cus-start.el (tool-bar-style): Add text-image-horiz.
      
      * src/gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
      style text_image_horiz.
      
      * src/lisp.h (Qtext_image_horiz): Declare.
      
      * src/xdisp.c (Qtext_image_horiz): Define.
      (syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
      to ducumentation of tool-bar-style.
      
      * src/xsettings.c (Ftool_bar_get_system_style): Also check for
      Qtext_image_horiz.
      8a52f00a
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      * progmodes/gud.el (gud-common-init): Check for remoteness of · b21d3ceb
      Michael Albinus authored
      `file', and not of `default-directory'.
      b21d3ceb
    • Michael Albinus's avatar
      * net/tramp.el (tramp-methods): Move hostname to the end in all · 8fbcce2d
      Michael Albinus authored
      ssh `tramp-login-args'.
      (tramp-verbose): Describe verbose level 9.
      (tramp-open-shell): Check for tty if `tramp-verbose' >= 9.
      (tramp-open-connection-setup-interactive-shell): Trace stty
      settings if `tramp-verbose' >= 9.
      (tramp-handle-start-file-process): Implement tty setting.
      (Bug#4604, Bug#6360)
      
      * net/tramp-cmds.el (tramp-bug): Recommend setting of
      `tramp-verbose' to 9.
      8fbcce2d
  4. 27 Jul, 2010 11 commits
    • Aaron S. Hawley's avatar
    • Tom Tromey's avatar
      Derive programming modes from prog-mode. · ae0c2494
      Tom Tromey authored
      * progmodes/js.el (js-mode):
      * progmodes/make-mode.el (makefile-mode):
      * progmodes/simula.el (simula-mode):
      * progmodes/tcl.el (tcl-mode): Derive from prog-mode.
      ae0c2494
    • Dan Nicolaescu's avatar
      60799703
    • Dan Nicolaescu's avatar
      Remove declarations and unused variables. · 37254dc1
      Dan Nicolaescu authored
      * src/term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
      (encode_terminal_code, produce_composite_glyph): Remove unused variables.
      (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
      local extern declarations.
      37254dc1
    • Dan Nicolaescu's avatar
      71c7345a
    • Dan Nicolaescu's avatar
      6ba577cb
    • Dan Nicolaescu's avatar
    • 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
    • Dan Nicolaescu's avatar
      89dc303e
    • Juanma Barranquero's avatar
      Merge from emacs-23 · 0ed082fe
      Juanma Barranquero authored
      0ed082fe
    • Juanma Barranquero's avatar
  5. 26 Jul, 2010 4 commits