1. 07 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Remove term "subwindow" from code and documentation. · be7f5545
      Martin Rudalics authored
      * window.h: Declare delete_all_child_windows instead of
      * window.c (Fwindow_nest, Fset_window_nest)
      (Fset_window_new_total, Fset_window_new_normal)
      (Fwindow_resize_apply): Don't use term subwindow in doc-strings.
      (delete_all_subwindows): Rename to delete_all_child_windows.
      (Fdelete_other_windows_internal, Fset_window_configuration):
      Call delete_all_child_windows instead of delete_all_subwindows.
      * frame.c (delete_frame): Call delete_all_child_windows instead
      of delete_all_subwindows.
      * window.el (window-combinations): Make WINDOW argument
      mandatory.  Rewrite doc-string.
      (walk-window-subtree, window-atom-check, window-min-delta)
      (window-max-delta, window--resize-this-window)
      (window--resize-root-window-vertically, window-tree)
      (balance-windows, window-state-put): Rewrite doc-strings as to
      not mention the term "subwindow".
      (window--resize-subwindows-skip-p): Rename to
      (window--resize-subwindows-normal): Rename to
      (window--resize-subwindows): Rename to
      (window-or-subwindow-p): Rename to window--in-subtree-p.
      * windows.texi (Resizing Windows, Splitting Windows)
      (Window Configurations): Use "child window" instead of
  2. 06 Nov, 2011 1 commit
    • Chong Yidong's avatar
      Delete window-combination-p; tweaks to window-top-child and window-left-child. · 49745b39
      Chong Yidong authored
      * lisp/window.el (window-combination-p): Function deleted; its
      side-effect is not used in any existing code.
      (window-combinations, window-combined-p): Call window-*-child
      * window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window)
      (Fminibuffer_window, Fwindow_buffer, Fwindow_splits)
      (Fset_window_splits, Fwindow_nest, Fset_window_nest)
      (Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size)
      (Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line)
      (Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars)
      (Fwindow_vscroll): Doc fix.
      (Fwindow_top_child, Fwindow_left_child): Eliminate a nil default
      argument, since it makes no sense to pass a live window and for
      consistency with window-child.
  3. 05 Nov, 2011 2 commits
    • Chong Yidong's avatar
      * window.el (window-normalize-window): Rename from window-normalize-any-window. · 447f16b8
      Chong Yidong authored
      New arg LIVE-ONLY, replacing window-normalize-live-window.
      (window-normalize-live-window): Deleted.
      (window-combination-p, window-combined-p, window-combinations)
      (walk-window-subtree, window-atom-root, window-min-size)
      (window-sizable, window-sizable-p, window-size-fixed-p)
      (window-min-delta, window-max-delta, window-resizable)
      (window-resizable-p, window-full-height-p, window-full-width-p)
      (window-current-scroll-bars, window-point-1, set-window-point-1)
      (window-at-side-p, window-in-direction, window-resize)
      (adjust-window-trailing-edge, maximize-window, minimize-window)
      (window-deletable-p, delete-window, delete-other-windows)
      (record-window-buffer, unrecord-window-buffer)
      (switch-to-prev-buffer, switch-to-next-buffer, window--delete)
      (quit-window, split-window, window-state-put)
      (set-window-text-height, fit-window-to-buffer)
      (shrink-window-if-larger-than-buffer): Callers changed.
    • Chong Yidong's avatar
      * lisp/window.el (window-valid-p): Rename from window-any-p. · 24300f5f
      Chong Yidong authored
      (window-normalize-any-window, window-size-ignore)
      (window-state-get): Callers changed.
  4. 04 Nov, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix documentation per bug #9949. · 89bd5ee1
      Eli Zaretskii authored
       src/window.c (Fwindow_body_size): Mention in the doc string that the
       return value is in frame's canonical units.
       lisp/window.el (window-body-height, window-body-width): Mention in
       the doc string that the return values are in frame's canonical
       doc/lispref/windows.texi (Window Sizes): Mention in the doc string that the
       return values of `window-body-height' and `window-body-width' are
       in frame's canonical units.
  5. 02 Nov, 2011 2 commits
  6. 30 Oct, 2011 2 commits
    • Martin Rudalics's avatar
      Remove "iso-" infix from window combination functions. · 3d8daefe
      Martin Rudalics authored
      * window.el (window-iso-combination-p, window-iso-combined-p)
      (window-iso-combinations): Remove "iso-" infix.  Suggested by
      Chong Yidong.
      (window-min-size-1, window-size-fixed-1, window-min-delta-1)
      (window-max-delta-1, window-resize, window--resize-siblings)
      (window--resize-this-window, adjust-window-trailing-edge)
      (split-window, balance-windows-1)
      * calendar/calendar.el (calendar-generate-window):
      * help.el (resize-temp-buffer-window): Adjust callers
      * windows.texi (Windows and Frames): Remove "iso-" infix from
      documentation of window-iso-combined-p.
    • Chong Yidong's avatar
      Rename split-window-{above-each-other|split-window-side-by-side} · 2d197ffb
      Chong Yidong authored
      to split-window-below and split-window-right.
      * lisp/window.el (split-window-below, split-window-right): Rename from
      split-window-above-each-other and split-window-side-by-side
      respectively.  All callers changed.
      (split-window-sensibly, split-window-sensibly): Use them.
      (split-window-keep-point): Doc fix.
      * lisp/isearch.el: Add isearch-scroll property to split-window-below
      and split-window-right.
      * lisp/follow.el (follow-mode):
      * lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
      * lisp/progmodes/ada-xref.el (ada-gdb-application):
      * lisp/emulation/vip.el (vip-buffer-in-two-windows):
      * lisp/image-dired.el (image-dired-dired-with-window-configuration):
      * lisp/dired-x.el (dired-do-find-marked-files):
      * lisp/dired.el (dired-pop-to-buffer):
      * lisp/bs.el (bs--show-with-configuration):
      * lisp/vc/emerge.el (emerge-setup-windows):
      * lisp/textmodes/two-column.el (2C-two-columns):
      * lisp/textmodes/reftex-toc.el (reftex-toc):
      * lisp/progmodes/gdb-mi.el (gdb-setup-windows):
      * lisp/progmodes/fortran.el (fortran-window-create):
      * lisp/net/newst-treeview.el (newsticker--treeview-window-init):
      * lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
      * lisp/emulation/tpu-edt.el (tpu-gold-map):
      * lisp/emulation/crisp.el (crisp-mode-map):
      * lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.
  7. 21 Oct, 2011 1 commit
    • Martin Rudalics's avatar
      Fix and improve mouse-dragging of horizontal/vertical lines. · e07b9a6d
      Martin Rudalics authored
      * mouse.el (mouse-drag-window-above)
      (mouse-drag-move-window-bottom, mouse-drag-move-window-top)
      (mouse-drag-mode-line-1, mouse-drag-header-line)
      (mouse-drag-vertical-line-rightward-window): Remove.
      (mouse-drag-line): New function.
      (mouse-drag-mode-line, mouse-drag-header-line)
      (mouse-drag-vertical-line): Call mouse-drag-line.
      * window.el (window-at-side-p, windows-at-side): New functions.
  8. 10 Oct, 2011 2 commits
  9. 09 Oct, 2011 1 commit
  10. 08 Oct, 2011 2 commits
  11. 05 Oct, 2011 2 commits
  12. 04 Oct, 2011 1 commit
    • Martin Rudalics's avatar
      Make frame iconification/deletion optional when burying buffers. · 0e2070b5
      Martin Rudalics authored
      * window.el (window--delete): New function.
      (frame-auto-delete): Resuscitate option.
      (bury-buffer, replace-buffer-in-windows)
      (quit-window): Rewrite using window--delete.
      (display-buffer-pop-up-frame, display-buffer-pop-up-window):
      Pass display-buffer-mark-dedicated to window--display-buffer-2
  13. 29 Sep, 2011 1 commit
  14. 24 Sep, 2011 1 commit
  15. 23 Sep, 2011 1 commit
  16. 22 Sep, 2011 3 commits
  17. 21 Sep, 2011 2 commits
    • Martin Rudalics's avatar
      Rewrite code quitting windows and restoring the previous buffer. · cf4eacfd
      Martin Rudalics authored
      * window.el (set-window-buffer-start-and-point): Call
      set-window-start with NOFORCE argument t.  Suggested by Thierry
      Volpiatto <thierry.volpiatto@gmail.com>.
      (quit-window): Reword doc-string.  Handle new format of
      quit-restore parameter.  Don't delete window if it has a
      previous buffer we can show instead of the present one.
      (display-buffer-record-window): Rewrite using a new format for
      the quit-restore window parameter
      (special-display-popup-frame, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-use-some-window):
      Adapt symbol passed to display-buffer-record-window.
      * help.el (help-window-setup): Handle new format of quit-restore
    • Stefan Monnier's avatar
      * lisp/window.el (display-buffer--action-function-custom-type): · 8d28cb95
      Stefan Monnier authored
      Don't include internal functions in the Custom interface.
  18. 17 Sep, 2011 2 commits
  19. 15 Sep, 2011 1 commit
  20. 14 Sep, 2011 1 commit
    • Martin Rudalics's avatar
      Replace display-buffer-window by help-setup window parameter. · f678e0b6
      Martin Rudalics authored
      * window.el (display-buffer-window): Remove.
      (display-buffer-record-window): Use help-setup window parameter
      instead of variable display-buffer-window.
      (display-buffer-function, special-display-buffer-names)
      (special-display-function): Mention help-setup parameter instead
      of display-buffer-window in doc-string.
      * help.el (help-window-setup): New argument help-window.  Use
      help-window-setup parameter instead of display-buffer-window.
      Reword some messages.
      (with-help-window): Pass window used for displaying the buffer
      to help-window-setup.  Don't set display-buffer-window.
  21. 13 Sep, 2011 3 commits
  22. 11 Sep, 2011 2 commits
    • Chong Yidong's avatar
      Add defcustom definitions for display-buffer vars. · fa5660f9
      Chong Yidong authored
      * lisp/window.el (display-buffer--action-function-custom-type)
      (display-buffer--action-custom-type): New vars.
      (display-buffer-alist, display-buffer-default-action)
      (display-buffer-overriding-action): Add defcustom types.
    • Chong Yidong's avatar
      Change modes that used same-window-* vars to use switch-to-buffer. · 37ac18a3
      Chong Yidong authored
      * cmuscheme.el (run-scheme, switch-to-scheme):
      * ielm.el (ielm):
      * shell.el (shell):
      * net/rlogin.el (rlogin):
      * net/telnet.el (telnet, rsh):
      * progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer.
      * cus-edit.el (customize-group, custom-buffer-create)
      (customize-browse, custom-buffer-create-other-window): Use
      switch-to-buffer or switch-to-buffer-other-window.
      * info.el (info, Info-find-node, Info-revert-find-node, Info-next)
      (Info-prev, Info-up, Info-speedbar-goto-node)
      (info-display-manual): Use switch-to-buffer.
      (Info-speedbar-goto-node): Use switch-to-buffer-other-frame.
      * lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer.
      (message-mail-other-window, message-mail-other-frame)
      (message-news-other-window, message-news-other-frame): Use
      switch-to-buffer-other-frame and switch-to-buffer-other-window instead
      of setting buffer display varibles.
      * mail/sendmail.el (mail): Use switch-to-buffer.
      (mail-recover): Use switch-to-buffer-other-window.
      * progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows):
      Use switch-to-buffer.
  23. 10 Sep, 2011 3 commits
    • Chong Yidong's avatar
      Fix various uses of display-buffer and pop-to-buffer · 3199b96f
      Chong Yidong authored
      to avoid using special-display-* and same-window-* variables.
      * lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
      of display-buffer.
      (Buffer-menu-2-window): Use switch-to-buffer-other-window.
      * lisp/replace.el (occur-mode-goto-occurrence)
      (occur-mode-display-occurrence) Use second arg of pop-to-buffer
      and display-buffer.
      * lisp/window.el (display-buffer-alist): Add *Python*.
      * lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
      * lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
      special-display and same-window variables.
      (mail-other-window): Use switch-to-buffer-other-window.
      (mail-other-frame): USe switch-to-buffer-other-frame.
      * lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
      (gdb-display-gdb-buffer): Use pop-to-buffer.
      * lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.
      * lisp/progmodes/python.el: Don't set same-window-buffer-names.
      * lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Tweaks to display-buffer default actions; remove same-window-* autoload forms. · 8319e0bf
      Chong Yidong authored
      * lisp/window.el (display-buffer-alist): Add entry for buffers
      previously handled same-window-*.
      (display-buffer-alist, display-buffer-default-action)
      (display-buffer-overriding-action): Mark as risky.
      (display-buffer-alist): Document action function changes.
      (display-buffer--other-frame-action): New variables.
      (switch-to-buffer, display-buffer-other-frame): Use them.
      (display-buffer): Rename reuse-frame entry to reusable-frames.
      (display-buffer-reuse-selected-window): Function deleted.
      (display-buffer-reuse-window): Handle reusable-frames alist entry.
      If it's omitted, check pop-up-frames/display-buffer-reuse-frames.
      (display-buffer-special): New function.
      (display-buffer--maybe-pop-up-frame-or-window): Rename from
      display-buffer-reuse-or-pop-window.  Split off special-display
      part into display-buffer-special.
      (display-buffer-use-some-window): Don't perform any special
      pop-up-frames handling.
      (pop-to-buffer): Use window-normalize-buffer-to-switch-to.
      * lisp/cmuscheme.el:
      * lisp/ielm.el:
      * lisp/shell.el:
      * lisp/mail/sendmail.el:
      * lisp/progmodes/inf-lisp.el: Don't set same-window-buffer-names.
      * lisp/cus-edit.el:
      * lisp/info.el:
      * lisp/net/rlogin.el:
      * lisp/net/telnet.el:
      * lisp/progmodes/gud.el: Don't set same-window-regexps.
  24. 08 Sep, 2011 2 commits
    • Martin Rudalics's avatar
      Don't have previous and next buffers deal with internal windows. · 9b1c252e
      Martin Rudalics authored
      * window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
      Operate on live windows only.
      * window.el (window-deletable-p): Make sure window is live before
      invoking window-prev-buffers.
    • Martin Rudalics's avatar
      Rewrite window/frame auto-deletion code. (Bug#9419) and (Bug#9456) · 8b0874b5
      Martin Rudalics authored
      * window.el (frame-auto-delete): Rename to window-auto-delete.
      Make it control auto-deletion of windows and/or frames.
      (window-deletable-p): New argument FORCE.  Rewrite conditions
      for deleting window/frame. (Bug#9419)
      (switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
      Rewrite handling of case when window/frame can be deleted.
      (delete-windows-on): Call window-deletable-p with new FORCE
      argument t. (Bug#9456)