1. 29 Oct, 2010 2 commits
    • Glenn Morris's avatar
      Remove duplicate Lisp definition of temporary-file-directory, from filelock.c. · e088c02a
      Glenn Morris authored
      * lisp/files.el (temporary-file-directory): Remove (already defined in C).
      * lisp/cus-start.el: Add temporary-file-directory.
    • 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.
  2. 24 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Avoid redefining some C defcustoms. · ec514007
      Glenn Morris authored
      * lisp/frame.el (show-trailing-whitespace, auto-hscroll-mode)
      (display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
      Don't redefine things that are defined in C.
      * lisp/cus-start.el: Also handle :risky, :safe, :set, and :tag.
      (show-trailing-whitespace, auto-hscroll-mode)
      (display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
      Set up the appropriate custom properties.
  3. 11 Oct, 2010 1 commit
    • Jan Djärv's avatar
      Bug#7150: Distinguishing between left and right Alt keys on NextStep/OSX. · a2e35ef5
      Jan Djärv authored
      * lisp/cus-start.el (all): ns-right-alternate-modifier is new.
      * lisp/term/ns-win.el (ns-right-alternate-modifier): New defvar.
      (ns-right-option-modifier): New alias for ns-right-alternate-modifier.
      (mac-right-option-modifier): New alias for ns-right-option-modifier.
      * src/nsterm.m (Qleft): Declare.
      (ns_right_alternate_modifier): New variable
      (NSRightAlternateKeyMask): New define.
      (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
      ns_right_alternate_modifier isn't Qleft.
      (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
      as emacs modifier for NSRightAlternateKeyMask.
      (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
  4. 29 Aug, 2010 1 commit
  5. 16 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Let all active regions set the primary selection. · 7c23dd44
      Chong Yidong authored
      This includes both temporarily active regions (mouse drag and
      shift-select) and those made with C-SPC and cursor motion.
      * lisp/cus-start.el: Change defcustom for select-active-regions.
      * lisp/simple.el (deactivate-mark): If select-active-regions is `only',
      only set selection for temporarily active regions.
      * src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
      * src/keyboard.c (command_loop_1): Avoid setting selection twice,
      since it's done in deactivate-mark as well.
      (Vselect_active_regions): Replace `lazy' value with `only',
      meaning to only set PRIMARY for temporarily active regions.
  6. 07 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Change `select-active-region' mechanics. · 9852377f
      Chong Yidong authored
      Save region text prior to buffer modification.
      Set window selection lazily, during `deactivate-mark' or after each
      command when the region is temporarily active.
      * lisp/cus-start.el: Add custom declaration for select-active-regions.
      * lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
      select-active-regions implementation.
      (mouse-yank-at-click): Doc fix.
      * lisp/simple.el (select-active-regions): Move to keyboard.c.
      (deactivate-mark): Used saved-region-selection.
      (select-active-region): Function removed.
      (activate-mark, set-mark, push-mark-command)
      (handle-shift-selection): Don't call it.
      (keyboard-quit): Avoid adding the region to the window selection.
      * src/insdel.c (prepare_to_modify_buffer): Save active region text to
      * src/keyboard.c (Vselect_active_regions): Move from simple.el.
      (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
      (command_loop_1): Set window selection prior to deactivating the
      * src/xselect.c (QPRIMARY): Move to keyboard.c.
  7. 01 Aug, 2010 1 commit
    • Jan D's avatar
      Use Gtk+ tooltips by default for Gtk+ Emacs. · aa1859f5
      Jan D authored
      * lisp/cus-start.el (x-gtk-use-system-tooltips): New variable.
      * src/gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
      (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
      (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
      text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
      Remove code that is commented out.
      * src/gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
      (xg_show_tooltip, xg_hide_tooltip): Declare.
      * src/xfns.c (x_gtk_use_system_tooltips): New variable.
      (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
      new gtkutil tooltip functions to show the tooltip.
      (Fx_hide_tip): Call xg_hide_tooltip.
      (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
      * src/xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
      calling gtk_widget_queue_draw.
      (x_free_frame_resources): Call xg_free_frame_widgets.
      * src/xterm.h (struct x_output): Add ttip_widget, ttip_window and
  8. 28 Jul, 2010 1 commit
    • 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
  9. 07 May, 2010 1 commit
  10. 20 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Gtk tool bars can be text, icons with text or just icons. · f904c0f9
      Jan Djärv authored
      * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
      current_tool_bar_style are new.
      (store_config_changed_event): Rename from store_font_changed_event.
      (XSETTINGS_TOOL_BAR_STYLE): New define.
      (SEEN_FONT, SEEN_TB_STYLE): New enum values.
      (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
      (something_changedCB): store_font_changed_event is now
      (parse_settings): Rename from parse_xft_settings.  Read
      non-xft xsettings outside #ifdef HAVE_XFT.
      (read_settings): Renamed from read_xft_settings.
      (apply_xft_settings): Take current settings as parameter.  Do not
      call read_(xft)_settings.
      (read_and_apply_settings): New function.
      (xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
      read_and_apply_settings if there are settings to be read.
      (init_xsettings): Renamed from init_xfd_settings.
      Call read_and_apply_settings unconditionally.
      (xsettings_initialize): Call init_xsettings.
      (Ftool_bar_get_system_style): New function.
      (syms_of_xsettings): Define Qmonospace_font_name and
      Qtool_bar_style.  Initialize current_tool_bar_style to nil.
      defsubr Stool_bar_get_system_style. Fprovide on
      * xsettings.h (Ftool_bar_get_system_style): Declare.
      * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
      Qtext, Qboth, Qboth_horiz are new.
      (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
      Vtool_bar_style, tool_bar_max_label_size.
      * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
      * keyboard.c: QClabel is new.
      (parse_tool_bar_item): Take out QClabel from tool bar items.
      Try to construct a label if ther is no QClabel.
      (syms_of_keyboard): Intern :label as QClabel.
      * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
      (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
      * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
      * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
      (xg_make_tool_item, xg_show_toolbar_item): New function.
      (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
      Call xg_make_tool_item to make a tool bar item.
      Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
      * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
      into account for toolbars.
      * vc-dir.el (vc-dir-tool-bar-map): Add :label on some tool bar items.
      * tool-bar.el (tool-bar-setup): Add :label on some tool bar items.
      * loadup.el: Load dynamic-setting.el if feature dynamic-setting
      is present.
      * info.el (info-tool-bar-map): Add labels.
      * cus-start.el (all): Add tool-bar-style and tool-bar-max-label-size.
      * cus-edit.el (custom-commands): Add labels for tool bar.
      (custom-buffer-create-internal, Custom-mode): Adjust for
      labels in custom-commands.
      * dynamic-setting.el: Renamed from font-setting.el.
  11. 13 Jan, 2010 1 commit
  12. 21 Nov, 2009 1 commit
  13. 17 Nov, 2009 1 commit
    • Jan Djärv's avatar
      xsettings.c didn't check font-use-system-font, fix that. · dfb3c4c6
      Jan Djärv authored
      * xsettings.c (something_changedCB, Ffont_get_system_font): Check
      (syms_of_xsettings): DEFVAR font-use-system-font.
      * font-setting.el (font-use-system-font): Moved ...
      * cus-start.el (all): ... to here.
  14. 18 Sep, 2009 1 commit
  15. 27 Aug, 2009 1 commit
    • Stefan Monnier's avatar
      * subr.el (default-mode-line-format, default-header-line-format) · 4e3b4528
      Stefan Monnier authored
      (default-line-spacing, default-abbrev-mode, default-ctl-arrow)
      (default-direction-reversed, default-truncate-lines)
      (default-left-margin, default-tab-width, default-case-fold-search)
      (default-left-margin-width, default-right-margin-width)
      (default-left-fringe-width, default-right-fringe-width)
      (default-fringes-outside-margins, default-scroll-bar-width)
      (default-vertical-scroll-bar, default-indicate-empty-lines)
      (default-indicate-buffer-boundaries, default-fringe-indicator-alist)
      (default-fringe-cursor-alist, default-scroll-up-aggressively)
      (default-scroll-down-aggressively, default-fill-column)
      (default-cursor-type, default-buffer-file-type)
      (default-buffer-file-coding-system, default-major-mode)
      (default-enable-multibyte-characters): Mark as obsolete.
      * cus-start.el (default-major-mode): Customize `major-mode' instead.
      (enable-multibyte-characters): Not customizable any more.
  16. 03 Jul, 2009 1 commit
    • Jan Djärv's avatar
      * xterm.h (struct x_display_info): Add invisible_cursor. · e044e4fc
      Jan Djärv authored
      (struct x_output): Add current_cursor.
      * xterm.c (XTtoggle_invisible_pointer): New function.
      (x_define_frame_cursor): Don't define cursor if invisible or the
      same as before.  Set current_cursor.
      (x_create_terminal): Set toggle_invisible_pointer_hook.
      * xfns.c (make_invisible_cursor): New function.
      (x_set_mouse_color): Call make_invisible_cursor.
      Set current_cursor.
      (x_window): Set current_cursor.
      * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
      * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
      inserting a character.
      (read_avail_input): Call frame_make_pointer_visible.
      * frame.c (Vmake_pointer_invisible): New variable.
      (frame_make_pointer_invisible, frame_make_pointer_visible): New
      (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
      * frame.h: Declare frame_make_pointer_invisible and
      (struct frame): Add pointer_invisible.
      * cus-start.el (all): Added make-pointer-invisible.
  17. 23 Jun, 2009 1 commit
  18. 27 Mar, 2009 1 commit
  19. 21 Mar, 2009 3 commits
  20. 05 Jan, 2009 1 commit
  21. 29 Aug, 2008 1 commit
  22. 05 Aug, 2008 2 commits
  23. 30 Jul, 2008 1 commit
  24. 27 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      Remove support for Mac Carbon. · 9e2a2647
      Dan Nicolaescu authored
      * mactoolbox.c:
      * macterm.h:
      * macterm.c:
      * macselect.c:
      * macmenu.c:
      * macgui.h:
      * macfns.c:
      * mac.c: Remove file.
      * s/darwin.h:
      * m/intel386.h:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * tparam.c:
      * termhooks.h:
      * termcap.c:
      * term.c:
      * syssignal.h:
      * sysselect.h:
      * sysdep.c:
      * process.c:
      * lread.c:
      * lisp.h:
      * keyboard.c:
      * image.c:
      * fringe.c:
      * frame.h:
      * frame.c:
      * fontset.c:
      * font.h:
      * font.c:
      * fns.c:
      * fileio.c:
      * emacs.c:
      * dispnew.c:
      * dispextern.h:
      * config.in:
      * atimer.c:
      * Makefile.in: Remove code for Carbon
      * erc.el: Remove code for Carbon.
      Remove support for Mac Carbon.
      * term/mac-win.el: Remove file
      * international/mule-cmds.el:
      * version.el:
      * startup.el:
      * simple.el:
      * mwheel.el:
      * mouse.el:
      * loadup.el:
      * isearch.el:
      * info.el:
      * frame.el:
      * faces.el:
      * disp-table.el:
      * cus-start.el:
      * cus-face.el:
      * cus-edit.el:
      * Makefile.in: Remove code for Carbon.
      Remove support for Mac Carbon.
      * makefile.w32-in:
      * emacsclient.c: Remove code for Carbon.
      * PROBLEMS:
      * MACHINES: Remove mentions of Mac Carbon.
      * ns-emacs.texi:
      * faq.texi: Remove mentions of Mac Carbon.
      * os.texi:
      * frames.texi:
      * display.texi: Remove mentions of Mac Carbon.
      * xresources.texi: Remove mentions of Mac Carbon.
      * make-tarball.txt:
      * admin.el:
      * FOR-RELEASE:
      * CPP-DEFINES: Remove mentions of Mac Carbon.
      Remove support for Mac Carbon.
      * mac: Remove directory.
      * make-dist:
      * configure.in:
      * README:
      * Makefile.in:
      * INSTALL:  Remove code for Carbon.
      * configure: Regenerate.
  25. 02 Jul, 2008 1 commit
    • Jason Rumney's avatar
      Changes from Toru Tsuneyoshi for using Trash can when deleting files. · 6cf29fe8
      Jason Rumney authored
      	* files.el (backup-extract-version): Handle versioned directories.
      	(trash-directory): New variable.
      	(move-file-to-trash): New function.
      	* cus-start.el (delete-by-moving-to-trash): Declare for custom.
              * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
              * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
              (syms_of_fileio): Initialize and export them.
              (Fdelete_directory, Fdelete_file): Optionally delete via trash.
              * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
              (Fsystem_move_file_to_trash): New function.
              (syms_of_w32fns): Export it to lisp.
  26. 26 Jun, 2008 1 commit
  27. 10 Jun, 2008 2 commits
    • Stefan Monnier's avatar
      * xdisp.c (underline_minimum_offset): Rename from xterm.c's · 2a3bd2e1
      Stefan Monnier authored
      (syms_of_xdisp): Declare it here rather than in xterm.c.
      * dispextern.h (underline_minimum_offset): Declare it.
      * w32term.c (x_draw_glyph_string): Use it.
      * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
      (syms_of_xterm): Don't declare it any more.
      (x_draw_glyph_string): Adjust to the new name.
      * cus-start.el (underline-minimum-offset) Rename from
    • Stefan Monnier's avatar
      * xterm.c (x_underline_minimum_display_offset): New var. · d5dc6163
      Stefan Monnier authored
      (x_draw_glyph_string): Use it.
      (syms_of_xterm): Declare it.
      * cus-start.el (x-underline-minimum-display-offset): Give it a type.
  28. 05 Jun, 2008 1 commit
    • Stefan Monnier's avatar
      * window.el (display-buffer-function, special-display-p) · 87478b52
      Stefan Monnier authored
      (special-display-buffer-names, special-display-regexps)
      (special-display-function, same-window-p, same-window-buffer-names)
      (same-window-regexps, pop-up-frames, display-buffer-reuse-frames)
      (pop-up-frame-function, pop-up-windows)
      (split-window-preferred-function, split-height-threshold)
      (split-width-threshold, window--splittable-p)
      (window--try-to-split-window, window--frame-usable-p)
      (even-window-heights, window--even-window-heights)
      (window--display-buffer-1, window--display-buffer-2, display-buffer)
      (pop-to-buffer): Move from window.c and buffer.c.
      (split-window-preferred-horizontally): Remove.
      * cus-start.el: Remove corresponding declarations.
      * window.c (pop_up_windows, pop_up_frames)
      (display_buffer_reuse_frames, Vpop_up_frame_function)
      (Vdisplay_buffer_function, Veven_window_heights)
      (Vspecial_display_buffer_names, Vspecial_display_regexps)
      (Vspecial_display_function, Vsame_window_buffer_names)
      (Vsame_window_regexps, split_height_threshold)
      (Vsplit_window_preferred_function): Move those vars to window.el.
      (display_buffer_1, Fspecial_display_p, Fsame_window_p)
      (Fdisplay_buffer): Move those functions to window.el.
      (syms_of_window): Remove corresponding declarations.
      (display_buffer): New function.
      (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
      * dispnew.c (Flast_nonminibuf_frame): New function.
      * buffer.c (Fpop_to_buffer): Move to window.el.
  29. 06 May, 2008 1 commit
  30. 23 Apr, 2008 1 commit
    • Stefan Monnier's avatar
      * lisp/minibuffer.el (read-file-name-function, read-file-name-predicate) · dbd50d4b
      Stefan Monnier authored
      (read-file-name-completion-ignore-case, insert-default-directory):
      New vars, moved from fileio.c.
      (read-file-name): New fun, moved from fileio.c.
      * lisp/cus-start.el: Remove insert-default-directory and
      * src/fileio.c (Vread_file_name_function, Vread_file_name_predicate)
      (read_file_name_completion_ignore_case, insert_default_directory)
      (Qdefault_directory): Move to minibuffer.el.
      (Fread_file_name): Call the new `read-file-name' instead.
  31. 09 Apr, 2008 1 commit
    • Stefan Monnier's avatar
      * minibuffer.el (minibuffer): Move group from cus-edit.el. · ba5ff07b
      Stefan Monnier authored
      (completion-auto-help): Move from C code.
      (minibuffer--maybe-completion-help): Remove.
      (minibuffer--bitset): New function.
      (minibuffer--do-completion): Rename from minibuffer-do-completion.
      Renumber a bit.  Really complete on string *before* point.
      Add argument used for word-completion.
      Join trailing / in completion with following text, as done in
      Handle new value `lazy' for completion-auto-help.
      (minibuffer-try-word-completion): New function extracted from
      (minibuffer-complete-word): Use minibuffer--do-completion.
      (minibuffer--insert-strings): Rename from
      (exit-minibuffer): Fix typo.
      * cus-edit.el (minibuffer): Move group to minibuffer.el.
      * cus-start.el: Remove completion-auto-help.
      * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
      (syms_of_minibuf): Remove its initialization.
  32. 29 Mar, 2008 1 commit
    • Juri Linkov's avatar
      (split-window-preferred-function): · f1917c6f
      Juri Linkov authored
      Set choice for "vertically" to nil instead of split-window.
      Set choice for "horizontally" to split-window-preferred-horizontally
      instead of lambda.
  33. 08 Feb, 2008 3 commits