1. 17 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Rename window-splits to window-combination-resize. · a0c2d0ae
      Martin Rudalics authored
      * window.c (Vwindow_splits): Rename to
      Vwindow_combination_resize.  Suggested by Juri Linkov.
      (Fsplit_window_internal): Use Vwindow_combination_resize instead
      of Vwindow_splits.
      * window.el (window-resize, delete-window, split-window):
      Replace window-splits by window-combination-resize.
      * cus-start.el (window-splits): Replace by
      window-combination-resize.
      * windows.texi (Resizing Windows, Splitting Windows)
      (Deleting Windows): Use term window-combination-resize instead
      of window-splits.
      a0c2d0ae
  2. 16 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Rename window-nest to window-combination-limit. · b6f67890
      Martin Rudalics authored
      * window.h (window): Rename slot "nest" to "combination_limit".
      * window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
      (Fset_window_nest): Rename to Fset_window_combination_limit.
      (Vwindow_nest): Rename to Vwindow_combination_limit.
      (recombine_windows, make_parent_window, make_window)
      (Fsplit_window_internal, saved_window)
      (Fset_window_configuration, save_window_save): Rename all
      occurrences of window_nest to window_combination_limit.
      * window.el (split-window, window-state-get-1)
      (window-state-put-1, window-state-put-2): Rename occurrences of
      window-nest to window-combination-limit.
      * cus-start.el (window-nest): Rename to
      window-combination-limit.
      * windows.texi (Resizing Windows, Splitting Windows): Rename
      occurrences of window-nest to window-combination-limit.
      b6f67890
  3. 07 Oct, 2011 1 commit
  4. 23 Aug, 2011 2 commits
  5. 10 Jun, 2011 1 commit
    • Martin Rudalics's avatar
      Move window resize code from window.c to window.el. · 562dd5e9
      Martin Rudalics authored
      * window.c: Remove declarations of Qwindow_size_fixed,
      window_min_size_1, window_min_size_2, window_min_size,
      size_window, window_fixed_size_p, enlarge_window, delete_window.
      Remove static from declaration of Qdelete_window, it's
      temporarily needed by Fbury_buffer.
      (replace_window): Don't assign orig_top_line and
      orig_total_lines.
      (Fdelete_window, delete_window): Remove.  Window deletion is
      handled by window.el.
      (window_loop): Remove DELETE_OTHER_WINDOWS case.  Replace
      Fdelete_window calls with calls to Qdelete_window.
      (Fdelete_other_windows): Remove.  Deleting other windows is
      handled by window.el.
      (window_fixed_size_p): Remove.  Fixed-sizeness of windows is
      handled in window.el.
      (window_min_size_2, window_min_size_1, window_min_size): Remove.
      Window minimum sizes are handled in window.el.
      (shrink_windows, size_window, set_window_height)
      (set_window_width, change_window_heights, window_height)
      (window_width, CURBEG, CURSIZE, enlarge_window)
      (adjust_window_trailing_edge, Fadjust_window_trailing_edge)
      (Fenlarge_window, Fshrink_window): Remove.  Window resizing is
      handled in window.el.
      (make_dummy_parent): Rename to make_parent_window and give it a
      second argument horflag.
      (make_window): Don't set resize_proportionally any more.
      (Fsplit_window): Remove.  Windows are split in window.el.
      (save_restore_action, save_restore_orig_size)
      (shrink_window_lowest_first, save_restore_orig_size): Remove.
      Resize mini windows in window.el.
      (grow_mini_window, shrink_mini_window): Implement by calling
      Qresize_root_window_vertically, resize_window_check and
      resize_window_apply.
      (saved_window, Fset_window_configuration, save_window_save): Do
      not handle orig_top_line, orig_total_lines, and
      resize_proportionally.
      (window_min_height, window_min_width): Move to window.el.
      (keys_of_window): Move bindings for delete-other-windows,
      split-window, delete-window and enlarge-window to window.el.
      
      * buffer.c: Temporarily extern Qdelete_window.
      (Fbury_buffer): Temporarily call Qdelete_window instead of
      Fdelete_window (Fbury_buffer will move to window.el soon).
      
      * frame.c (set_menu_bar_lines_1): Remove code handling
      orig_top_line and orig_total_lines.
      
      * dispnew.c (adjust_frame_glyphs_initially): Don't use
      set_window_height but set heights directly.
      (change_frame_size_1): Use resize_frame_windows.
      
      * xdisp.c (init_xdisp): Don't use set_window_height but set
      heights directly.
      
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use
      resize_frame_windows instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows
      instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * window.el (window-min-height, window-min-width): Move here
      from window.c.  Add defcustoms and rewrite doc-strings.
      (resize-mini-window, resize-window): New functions.
      (adjust-window-trailing-edge, enlarge-window, shrink-window):
      Move here from window.c.
      (maximize-window, minimize-window): New functions.
      (delete-window, delete-other-windows, split-window): Move here
      from window.c.
      (window-split-min-size): New function.
      (split-window-keep-point): Mention split-window-above-each-other
      instead of split-window-vertically.
      (split-window-above-each-other, split-window-vertically): Rename
      split-window-vertically to split-window-above-each-other and
      provide defalias for old definition.
      (split-window-side-by-side, split-window-horizontally): Rename
      split-window-horizontally to split-window-side-by-side and provide
      defalias for the old definition.
      (ctl-x-map): Move bindings for delete-window,
      delete-other-windows and enlarge-window here from window.c.
      Replace bindings for split-window-vertically and
      split-window-horizontally by bindings for
      split-window-above-each-other and split-window-side-by-side.
      
      * cus-start.el (all): Remove entries for window-min-height and
      window-min-width.  Add entries for window-splits and
      window-nest.
      562dd5e9
  6. 26 Apr, 2011 1 commit
  7. 27 Mar, 2011 1 commit
  8. 08 Mar, 2011 1 commit
  9. 26 Jan, 2011 1 commit
    • Stefan Monnier's avatar
      Let the debugger continue to the normal handler. · e7f7fbaa
      Stefan Monnier authored
      * src/eval.c (maybe_call_debugger): Declare before new use.
      (find_handler_clause): Don't call debugger any more.
      Ignore Vstack_trace_on_error.
      Use XCAR/XCDR.
      (syms_of_eval): Remove Vstack_trace_on_error.
      (Fsignal): Only modify handlerlist when we know we need to do it.
      Call the debugger when necessary.
      * src/globals.h (Vstack_trace_on_error): Remove.
      
      Fixes: debbugs:7825
      e7f7fbaa
  10. 25 Jan, 2011 1 commit
  11. 16 Jan, 2011 1 commit
  12. 02 Jan, 2011 1 commit
  13. 21 Nov, 2010 1 commit
    • Jan Djärv's avatar
      Add separate key mappings for left/right control/command on Nextstep (Bug#7458). · b7d1e144
      Jan Djärv authored
      * lisp/cus-start.el (all): Add ns-right-control-modifier and
      ns-right-command-modifier.
      
      * lisp/term/ns-win.el (ns-right-control-modifier)
      (ns-right-command-modifier): Defvar them.
      
      * src/nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
      Define (Bug#7458).
      (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
      (EV_MODIFIERS): Check for NSRightCommandKeyMask and
      NSRightControlKeyMask also (Bug#7458).
      (keyDown): Ditto (Bug#7458).
      (syms_of_nsterm): Defvar ns-right-command-modifier and
      ns-right-control-modifier (Bug#7458).
      b7d1e144
  14. 31 Oct, 2010 2 commits
  15. 30 Oct, 2010 1 commit
  16. 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.
      e088c02a
    • 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
  17. 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.
      ec514007
  18. 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.
      a2e35ef5
  19. 29 Aug, 2010 1 commit
  20. 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
      select-active-regions.
      
      * 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.
      7c23dd44
  21. 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
      Vsaved_region_selection.
      
      * src/keyboard.c (Vselect_active_regions): Move from simple.el.
      (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
      vars.
      (command_loop_1): Set window selection prior to deactivating the
      mark.
      
      * src/xselect.c (QPRIMARY): Move to keyboard.c.
      9852377f
  22. 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
      functions.
      (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
      ttip_lbl.
      aa1859f5
  23. 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
      Qtext_image_horiz.
      8a52f00a
  24. 07 May, 2010 1 commit
  25. 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
      HAVE_XFT.
      (something_changedCB): store_font_changed_event is now
      store_config_changed_event
      (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
      dynamic-setting.
      
      * 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):
      New.
      
      * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
      dynamic-setting.el.
      
      * 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.
      f904c0f9
  26. 13 Jan, 2010 1 commit
  27. 21 Nov, 2009 1 commit
  28. 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
      use_system_font.
      (syms_of_xsettings): DEFVAR font-use-system-font.
      
      * font-setting.el (font-use-system-font): Moved ...
      
      * cus-start.el (all): ... to here.
      dfb3c4c6
  29. 18 Sep, 2009 1 commit
  30. 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-cursor-in-non-selected-windows)
      (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.
      4e3b4528
  31. 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
      functions.
      (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
      
      * frame.h: Declare frame_make_pointer_invisible and
      frame_make_pointer_visible.
      (struct frame): Add pointer_invisible.
      
      * cus-start.el (all): Added make-pointer-invisible.
      e044e4fc
  32. 23 Jun, 2009 1 commit
  33. 27 Mar, 2009 1 commit
  34. 21 Mar, 2009 3 commits
  35. 05 Jan, 2009 1 commit