1. 19 Nov, 2012 1 commit
  2. 17 Nov, 2012 2 commits
  3. 16 Nov, 2012 2 commits
    • Martin Rudalics's avatar
      Fix some display-buffer related issues. · 0ff7851c
      Martin Rudalics authored
      * window.el (enlarge-window, shrink-window): Don't mention return
      value in doc-string (Bug#12896).
      (window--display-buffer): Don't resize frames - it won't work
      with all window managers and defeat pop-up-frame-alist.
      (display-buffer-alist): In doc-string explain that CONDITION can
      be a function and which arguments are passed to it (Bug#12854).
      (display-buffer-assq-regexp): New argument ACTION.  Handle lambda
      expressions (Bug#12854).
      (display-buffer): Pass ACTION argument to
      display-buffer-assq-regexp.
      
      * windows.texi (Choosing Window): Rewrite description of
      display-buffer-alist (Bug#12167).
      (Display Action Functions): Mention inhibit-switch-frame.  Fix
      description of display-buffer-below-selected.  Reorder actions.
      Add example (Bug#12848).
      0ff7851c
    • Glenn Morris's avatar
      Doc fixes related to fit-frame-to-buffer · 7c82753d
      Glenn Morris authored
      * lisp/window.el (fit-frame-to-buffer-bottom-margin)
      (fit-frame-to-buffer, fit-window-to-buffer): Doc fixes.
      
      * etc/NEWS: Related edit.
      7c82753d
  4. 13 Nov, 2012 1 commit
  5. 11 Nov, 2012 2 commits
  6. 03 Nov, 2012 1 commit
    • Martin Rudalics's avatar
      Doc changes related to displaying buffers and quitting windows. · 43bcfda6
      Martin Rudalics authored
      * window.el (switch-to-visible-buffer)
      (switch-to-buffer-preserve-window-point): Fix doc-strings.
      
      * windows.texi (Switching Buffers): Document option
      switch-to-buffer-preserve-window-point.
      (Display Action Functions): Document window-height and
      window-width alist entries.
      (Display Action Functions): Document
      display-buffer-below-selected and
      display-buffer-in-previous-window.
      (Quitting Windows): Document quit-restore-window.  Rewrite
      section.
      (Window Configurations): In window-state-get mention that
      argument window must be valid.
      (Window Parameters): Document quit-restore window parameter
      (Bug#12158).
      43bcfda6
  7. 31 Oct, 2012 1 commit
    • Martin Rudalics's avatar
      Install fixes for Bug#12764 and Bug#12766. · 218e997a
      Martin Rudalics authored
      * window.el (quit-restore-window): If the window has been
      created on an existing frame and ended up as the sole window on
      that frame, do not delete it (Bug#12764).
      
      * minibuf.c (read_minibuf): Restore current buffer since
      choose_minibuf_frame calling Fset_frame_selected_window may
      change it (Bug#12766).
      218e997a
  8. 27 Oct, 2012 1 commit
  9. 21 Oct, 2012 1 commit
  10. 14 Oct, 2012 1 commit
  11. 10 Oct, 2012 1 commit
  12. 07 Oct, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/window.el (internal--before-save-selected-window) · 662a9d0e
      Stefan Monnier authored
      (internal--after-save-selected-window): New functions extracted from
      save-selected-window.  Make sure we return the `alist' we construct.
      (save-selected-window): Use them.
      * lisp/textmodes/tex-mode.el (tex-recenter-output-buffer):
      Use with-selected-window.
      662a9d0e
  13. 05 Oct, 2012 1 commit
  14. 30 Sep, 2012 2 commits
    • Martin Rudalics's avatar
      Fix last fix of window--display-buffer. · 1bc83413
      Martin Rudalics authored
      1bc83413
    • Martin Rudalics's avatar
      Handle window-height and window-width alist entries in `display-buffer'. · 5938d519
      Martin Rudalics authored
      In buffer display functions handle window-height/window-width
      alist entries.  Suggested by Juri Linkov as fix for Bug#1806.
      * window.el (window--display-buffer): New argument ALIST.  Obey
      window-height and window-width alist entries.
      (window--try-to-split-window): New argument ALIST.  Bind
      window-combination-limit to t when the window's size shall be
      changed and window-combination-limit equals `window-size'.
      (display-buffer-in-atom-window)
      (display-buffer-in-major-side-window)
      (display-buffer-in-side-window, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-below-selected)
      (display-buffer-at-bottom, display-buffer-in-previous-window)
      (display-buffer-use-some-window): Adjust all callers of
      window--display-buffer and window--try-to-split-window.
      (fit-frame-to-buffer): New option.
      (fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
      is non-nil.
      (display-buffer-in-major-side-window): Evaluate window-height /
      window-width alist entries.
      
      * help.el (temp-buffer-resize-frames)
      (temp-buffer-resize-regexps): Remove options.
      (temp-buffer-resize-mode): Adjust doc-string.
      (resize-temp-buffer-window): Don't consult
      temp-buffer-resize-regexps.  Use fit-frame-to-buffer instead of
      temp-buffer-resize-frames.
      
      * dired.el (dired-mark-pop-up): Call
      display-buffer-below-selected with a fit-window-to-buffer alist
      entry.
      
      * window.c (Vwindow_combination_limit): New default value.
      (Qwindow_size): New symbol replacing Qtemp_buffer_resize.
      5938d519
  15. 26 Sep, 2012 1 commit
  16. 25 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Improve resizing of minibuffer windows (Bug#12419). · 9c52dd5a
      Martin Rudalics authored
      * window.el (window--resize-child-windows): When resizing child
      windows proportionally, process them in reverse order to
      preserve the "when splitting a window the new one gets the odd
      line" behavior.
      (window--resize-root-window-vertically): When resizing the
      minibuffer window try to affect only windows at the bottom of the
      frame.  (Bug#12419)
      9c52dd5a
  17. 22 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Make Temp Buffer Resize Mode less intrusive (Bug#1806). · 8e17c9ba
      Martin Rudalics authored
      * window.c (Fsplit_window_internal): Handle only Qt value of
      Vwindow_combination_limit separately.
      (Qtemp_buffer_resize): New symbol.
      (Vwindow_combination_limit): New default value.  Rewrite
      doc-string.
      * cus-start.el (window-combination-limit): Add new optional
      values.
      * window.el (temp-buffer-window-show)
      (window--try-to-split-window): Obey new values of
      window-combination-limit.
      (split-window): Test window-combination-limit for t instead of
      non-nil.
      (display-buffer-at-bottom): New buffer display action function.
      * help.el (temp-buffer-resize-regexps): New option.
      (temp-buffer-resize-mode): Rewrite doc-string.
      (resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
      Don't resize reused window.  Suggested by Glen Morris.
      8e17c9ba
  18. 16 Sep, 2012 2 commits
  19. 09 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Allow scrolling in y-or-n-p. · 011474aa
      Chong Yidong authored
      * lisp/replace.el (query-replace-map): Bind four new symbols for
      requesting window scrolling.
      
      * lisp/subr.el (y-or-n-p): Handle the window-scrolling bindings in
      query-replace-map.
      
      * lisp/custom.el (custom-theme-load-confirm): Use y-or-n-p.
      
      * lisp/window.el (scroll-other-window-down): Make the arg optional.
      
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't bind scrolling keys
      since they are now in query-replace-map.
      
      * doc/lispref/minibuf.texi (Yes-or-No Queries): Document recentering and
      scrolling in y-or-n-p.  Remove gratuitous example.
      
      * doc/lispref/searching.texi (Search and Replace): Document window scrolling
      entries in query-replace-map.
      
      Fixes: debbugs:8948
      011474aa
  20. 08 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Fix handling of debugger window. (Bug#8789) · fa2bcf43
      Martin Rudalics authored
      * window.el (display-buffer-in-previous-window): New buffer
      display action function.
      
      * emacs-lisp/debug.el (debugger-bury-or-kill): New option.
      (debugger-previous-window): New variable.
      (debug): Rewrite using display-buffer-in-previous-window,
      quit-restore-window and debugger-bury-or-kill.  (Bug#8789)
      fa2bcf43
  21. 07 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Minor doc fix for switch-to-buffer. · cee2e90d
      Chong Yidong authored
      * doc/lispref/windows.texi (Display Action Functions)
      (Choosing Window Options): Remove obsolete variable
      display-buffer-reuse-frames.
      (Switching Buffers): Minor doc tweak for switch-to-buffer.
      
      * lisp/window.el (switch-to-buffer): Doc fix.
      
      Fixes: debbugs:12181
      cee2e90d
  22. 05 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Provide support for fitting frames to buffers. · ef654460
      Martin Rudalics authored
      * help.el (temp-buffer-max-height): New default value.
      (temp-buffer-resize-frames): New option.
      (resize-temp-buffer-window): Optionally resize frame.
      
      * window.el (fit-frame-to-buffer-bottom-margin): New option.
      (fit-frame-to-buffer): New function.
      ef654460
  23. 03 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      New macro with-temp-buffer-window and related fixes. · c5e28e39
      Martin Rudalics authored
      * buffer.c (Fdelete_all_overlays): New function.
      
      * window.el (temp-buffer-window-setup-hook)
      (temp-buffer-window-show-hook): New hooks.
      (temp-buffer-window-setup, temp-buffer-window-show)
      (with-temp-buffer-window): New functions.
      (fit-window-to-buffer): Remove unused optional argument
      OVERRIDE.
      (special-display-popup-frame): Make sure the window used shows
      BUFFER.
      
      * help.el (temp-buffer-resize-mode): Fix doc-string.
      (resize-temp-buffer-window): New optional argument WINDOW.
      
      * files.el (recover-file, save-buffers-kill-emacs):
      * dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
      c5e28e39
  24. 01 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Rewrite switch-to-prev-/next-buffer and quit-window; add display-buffer-below-selected. · 78dd6ab1
      Martin Rudalics authored
      * window.el (switch-to-prev-buffer): Handle additional values of
      BURY-OR-KILL argument.  Don't switch in minibuffer window.
      (switch-to-next-buffer): Don't switch in minibuffer window.
      (quit-restore-window): New function based on quit-window.
      Handle additional values of former KILL argument.
      (quit-window): Call quit-restore-window with appropriate
      interpretation of KILL argument.
      (display-buffer-below-selected): New buffer display action
      function.
      78dd6ab1
  25. 31 Aug, 2012 1 commit
  26. 30 Aug, 2012 1 commit
  27. 26 Aug, 2012 2 commits
    • Chong Yidong's avatar
      Make special-display-* and display-buffer-reuse-frames obsolete. · 77f1f99c
      Chong Yidong authored
      * lisp/window.el (special-display-regexps, special-display-frame-alist)
      (special-display-buffer-names, special-display-function)
      (display-buffer-reuse-frames): Mark as obsolete.
      
      * lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
      
      * help.el (help-print-return-message): Don't treat
      display-buffer-reuse-frames specially.
      77f1f99c
    • Chong Yidong's avatar
      Clean up gdb-mi's usage of display-buffer. · d97af5a0
      Chong Yidong authored
      * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
      variable, replacing gdb-frame-parameters.
      (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
      (gdb-frame-threads-buffer, gdb-frame-memory-buffer)
      (gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
      (gdb-frame-locals-buffer, gdb-frame-registers-buffer): Use it.
      (def-gdb-frame-for-buffer): Macro deleted.  It is easier to define
      the functions directly with gdb-display-buffer-other-frame-action.
      (gdb-display-breakpoints-buffer, gdb-display-threads-buffer)
      (gdb-display-memory-buffer, gdb-display-disassembly-buffer)
      (gdb-display-stack-buffer, gdb-display-locals-buffer)
      (gdb-display-registers-buffer): Define directly.
      (def-gdb-display-buffer): Macro deleted.
      (gdb-display-buffer): Remove second and third args, callers don't
      use them.  Defer to the default display-buffer behavior, apart
      from making windows dedicated.
      (gdb-setup-windows): Don't call display-buffer unnecessarily.
      
      * window.el (display-buffer-pop-up-frame): Handle a
      pop-up-frame-parameters alist entry.
      (display-buffer): Document it.
      
      * progmodes/gud.el (gud-display-line): Just use display-buffer.
      d97af5a0
  28. 25 Aug, 2012 1 commit
  29. 22 Aug, 2012 3 commits
    • Martin Rudalics's avatar
      Rewrite handling of side and atomic windows. · caceae25
      Martin Rudalics authored
      * window.el (display-buffer-in-atom-window, window--major-non-side-window)
      (window--major-side-window, display-buffer-in-major-side-window)
      (delete-side-window, display-buffer-in-side-window): New
      functions.
      (window--side-check, window-deletable-p, delete-window)
      (delete-other-windows, split-window): Handle side windows and
      atomic windows appropriately.
      (window--display-buffer): Call display-buffer-record-window also
      when the window buffer did not change.
      caceae25
    • Martin Rudalics's avatar
      Rename window--size-ignore to window--size-ignore-p. · 842e3a93
      Martin Rudalics authored
      * window.el (window--size-ignore): Rename to window--size-ignore-p.
      Update callers.
      842e3a93
    • Martin Rudalics's avatar
      Let walk-window-tree and window-with-parameter operate on minibuffer windows too. · ea95074e
      Martin Rudalics authored
      * window.el (walk-window-tree, window-with-parameter): New
      optional argument MINIBUF to control whether these functions
      should run on the minibuffer window.
      (window-at-side-list): Don't operate on minibuffer window.
      (window-in-direction): Simplify and rewrite doc-string.
      ea95074e
  30. 21 Aug, 2012 1 commit
    • Martin Rudalics's avatar
      For selected window have (set-)window-point always operate on buffer's point. · 5481664a
      Martin Rudalics authored
      * window.c (Fwindow_point): For the selected window always return
      the position of its buffer's point.
      (Fset_window_point): For the selected window always go in its
      buffer to the specified position.
      * window.el (window-point-1, set-window-point-1): Remove.
      (window-in-direction, record-window-buffer)
      (set-window-buffer-start-and-point, split-window-below)
      (window--state-get-1, display-buffer-record-window): Replace
      calls to window-point-1 and set-window-point-1 by calls to
      window-point and set-window-point respectively.
      5481664a
  31. 17 Aug, 2012 1 commit
  32. 16 Aug, 2012 1 commit
    • Martin Rudalics's avatar
      In window.el tell whether functions operate on valid, live or any windows. · 85c2386b
      Martin Rudalics authored
      * window.el (window-child, window-child-count, window-last-child)
      (window-normalize-window, window-combined-p)
      (window-combinations, 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-resizable, window-total-size)
      (window-full-height-p, window-full-width-p, window-body-size)
      (window-at-side-p, adjust-window-trailing-edge, maximize-window)
      (minimize-window, window-deletable-p, delete-window)
      (delete-other-windows, set-window-buffer-start-and-point)
      (next-buffer, previous-buffer, split-window, balance-windows-2)
      (set-window-text-height, window-buffer-height)
      (fit-window-to-buffer, shrink-window-if-larger-than-buffer)
      (truncated-partial-width-window-p): Minor code adjustments.  In
      doc-strings state whether the argument window has to denote a
      live, valid or any window.
      85c2386b