aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/window.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el46
1 files changed, 22 insertions, 24 deletions
diff --git a/lisp/window.el b/lisp/window.el
index cad4e15507d..5493893d4c1 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -3505,9 +3505,7 @@ buffer display specifiers.")
3505 reuse-window (reuse-window nil same visible) 3505 reuse-window (reuse-window nil same visible)
3506 pop-up-window 3506 pop-up-window
3507 (pop-up-window (largest . nil) (lru . nil)) 3507 (pop-up-window (largest . nil) (lru . nil))
3508 pop-up-frame 3508 reuse-window (reuse-window other other nil)
3509 (pop-up-frame)
3510 reuse-window (reuse-window nil other visible)
3511 (reuse-window-even-sizes . t))) 3509 (reuse-window-even-sizes . t)))
3512 "List associating buffer identifiers with display specifiers. 3510 "List associating buffer identifiers with display specifiers.
3513The car of each element of this list is built from a set of cons 3511The car of each element of this list is built from a set of cons
@@ -5303,12 +5301,12 @@ this list as arguments."
5303 ;; Try reusing a window not showing BUFFER on any visible or 5301 ;; Try reusing a window not showing BUFFER on any visible or
5304 ;; iconified frame. 5302 ;; iconified frame.
5305 (display-buffer-reuse-window buffer '(nil other 0)) 5303 (display-buffer-reuse-window buffer '(nil other 0))
5306 ;; Try making a new frame. 5304 ;; Try making a new frame (but not in batch mode).
5307 (display-buffer-pop-up-frame buffer) 5305 (and (not noninteractive) (display-buffer-pop-up-frame buffer))
5308 ;; Try using weakly dedicated windows. 5306 ;; Try using a weakly dedicated window.
5309 (display-buffer-reuse-window 5307 (display-buffer-reuse-window
5310 buffer '(nil nil t) '((reuse-window-dedicated . weak))) 5308 buffer '(nil nil t) '((reuse-window-dedicated . weak)))
5311 ;; Try using strongly dedicated windows. 5309 ;; Try using a strongly dedicated window.
5312 (display-buffer-reuse-window 5310 (display-buffer-reuse-window
5313 buffer '(nil nil t) '((reuse-window-dedicated . t))))))) 5311 buffer '(nil nil t) '((reuse-window-dedicated . t)))))))
5314 5312
@@ -5583,7 +5581,7 @@ See also `same-window-regexps'."
5583 :group 'windows) 5581 :group 'windows)
5584(make-obsolete-variable 5582(make-obsolete-variable
5585 'same-window-buffer-names 5583 'same-window-buffer-names
5586 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5584 "use 2nd arg of `display-buffer' instead." "24.1")
5587 5585
5588(defcustom same-window-regexps nil 5586(defcustom same-window-regexps nil
5589 "List of regexps saying which buffers should appear in the \"same\" window. 5587 "List of regexps saying which buffers should appear in the \"same\" window.
@@ -5601,7 +5599,7 @@ See also `same-window-buffer-names'."
5601 :group 'windows) 5599 :group 'windows)
5602(make-obsolete-variable 5600(make-obsolete-variable
5603 'same-window-regexps 5601 'same-window-regexps
5604 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5602 "use 2nd arg of `display-buffer' instead." "24.1")
5605 5603
5606(defun same-window-p (buffer-name) 5604(defun same-window-p (buffer-name)
5607 "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window. 5605 "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window.
@@ -5647,7 +5645,7 @@ These supersede the values given in `default-frame-alist'."
5647 :group 'frames) 5645 :group 'frames)
5648(make-obsolete-variable 5646(make-obsolete-variable
5649 'special-display-frame-alist 5647 'special-display-frame-alist
5650 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5648 "use 2nd arg of `display-buffer' instead." "24.1")
5651 5649
5652(defun special-display-popup-frame (buffer &optional args) 5650(defun special-display-popup-frame (buffer &optional args)
5653 "Display BUFFER in a special frame and return the window chosen. 5651 "Display BUFFER in a special frame and return the window chosen.
@@ -5695,7 +5693,7 @@ and (cdr ARGS) as second."
5695 (frame-selected-window frame)))))) 5693 (frame-selected-window frame))))))
5696(make-obsolete 5694(make-obsolete
5697 'special-display-popup-frame 5695 'special-display-popup-frame
5698 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5696 "use 2nd arg of `display-buffer' instead." "24.1")
5699 5697
5700(defcustom special-display-function 'special-display-popup-frame 5698(defcustom special-display-function 'special-display-popup-frame
5701 "Function to call for displaying special buffers. 5699 "Function to call for displaying special buffers.
@@ -5714,7 +5712,7 @@ A buffer is special when its name is either listed in
5714 :group 'frames) 5712 :group 'frames)
5715(make-obsolete-variable 5713(make-obsolete-variable
5716 'special-display-function 5714 'special-display-function
5717 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5715 "use 2nd arg of `display-buffer' instead." "24.1")
5718 5716
5719(defcustom special-display-buffer-names nil 5717(defcustom special-display-buffer-names nil
5720 "List of names of buffers that should be displayed specially. 5718 "List of names of buffers that should be displayed specially.
@@ -5781,7 +5779,7 @@ See also `special-display-regexps'."
5781 :group 'frames) 5779 :group 'frames)
5782(make-obsolete-variable 5780(make-obsolete-variable
5783 'special-display-buffer-names 5781 'special-display-buffer-names
5784 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5782 "use 2nd arg of `display-buffer' instead." "24.1")
5785 5783
5786;;;###autoload 5784;;;###autoload
5787(put 'special-display-buffer-names 'risky-local-variable t) 5785(put 'special-display-buffer-names 'risky-local-variable t)
@@ -5852,7 +5850,7 @@ See also `special-display-buffer-names'."
5852 :group 'frames) 5850 :group 'frames)
5853(make-obsolete-variable 5851(make-obsolete-variable
5854 'special-display-regexps 5852 'special-display-regexps
5855 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5853 "use 2nd arg of `display-buffer' instead." "24.1")
5856 5854
5857(defun special-display-p (buffer-name) 5855(defun special-display-p (buffer-name)
5858 "Return non-nil if a buffer named BUFFER-NAME gets a special frame. 5856 "Return non-nil if a buffer named BUFFER-NAME gets a special frame.
@@ -5904,7 +5902,7 @@ affected by this variable."
5904 :group 'frames) 5902 :group 'frames)
5905(make-obsolete-variable 5903(make-obsolete-variable
5906 'pop-up-frame-alist 5904 'pop-up-frame-alist
5907 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5905 "use 2nd arg of `display-buffer' instead." "24.1")
5908 5906
5909(defcustom pop-up-frame-function 5907(defcustom pop-up-frame-function
5910 (lambda () (make-frame pop-up-frame-alist)) 5908 (lambda () (make-frame pop-up-frame-alist))
@@ -5916,7 +5914,7 @@ frame. The default value calls `make-frame' with the argument
5916 :group 'frames) 5914 :group 'frames)
5917(make-obsolete-variable 5915(make-obsolete-variable
5918 'pop-up-frame-function 5916 'pop-up-frame-function
5919 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5917 "use 2nd arg of `display-buffer' instead." "24.1")
5920 5918
5921(defcustom pop-up-frames 'unset ; nil 5919(defcustom pop-up-frames 'unset ; nil
5922 "Whether `display-buffer' should make a separate frame. 5920 "Whether `display-buffer' should make a separate frame.
@@ -5936,7 +5934,7 @@ Any other non-nil value means always make a separate frame."
5936 :group 'frames) 5934 :group 'frames)
5937(make-obsolete-variable 5935(make-obsolete-variable
5938 'pop-up-frames 5936 'pop-up-frames
5939 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5937 "use 2nd arg of `display-buffer' instead." "24.1")
5940 5938
5941(defcustom display-buffer-reuse-frames 'unset ; nil 5939(defcustom display-buffer-reuse-frames 'unset ; nil
5942 "Set and non-nil means `display-buffer' should reuse frames. 5940 "Set and non-nil means `display-buffer' should reuse frames.
@@ -5948,7 +5946,7 @@ that frame."
5948 :group 'frames) 5946 :group 'frames)
5949(make-obsolete-variable 5947(make-obsolete-variable
5950 'display-buffer-reuse-frames 5948 'display-buffer-reuse-frames
5951 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5949 "use 2nd arg of `display-buffer' instead." "24.1")
5952 5950
5953(defcustom pop-up-windows 'unset ; t 5951(defcustom pop-up-windows 'unset ; t
5954 "Set and non-nil means `display-buffer' should make a new window." 5952 "Set and non-nil means `display-buffer' should make a new window."
@@ -5957,7 +5955,7 @@ that frame."
5957 :group 'windows) 5955 :group 'windows)
5958(make-obsolete-variable 5956(make-obsolete-variable
5959 'pop-up-windows 5957 'pop-up-windows
5960 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5958 "use 2nd arg of `display-buffer' instead." "24.1")
5961 5959
5962(defcustom split-window-preferred-function 'split-window-sensibly 5960(defcustom split-window-preferred-function 'split-window-sensibly
5963 "Function called by `display-buffer' to split a window. 5961 "Function called by `display-buffer' to split a window.
@@ -5986,7 +5984,7 @@ not want to split the selected window."
5986 :group 'windows) 5984 :group 'windows)
5987(make-obsolete-variable 5985(make-obsolete-variable
5988 'split-window-preferred-function 5986 'split-window-preferred-function
5989 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5987 "use 2nd arg of `display-buffer' instead." "24.1")
5990 5988
5991(defcustom split-height-threshold 80 5989(defcustom split-height-threshold 80
5992 "Minimum height for splitting a window to display a buffer. 5990 "Minimum height for splitting a window to display a buffer.
@@ -6000,7 +5998,7 @@ split it vertically disregarding the value of this variable."
6000 :group 'windows) 5998 :group 'windows)
6001(make-obsolete-variable 5999(make-obsolete-variable
6002 'split-height-threshold 6000 'split-height-threshold
6003 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6001 "use 2nd arg of `display-buffer' instead." "24.1")
6004 6002
6005(defcustom split-width-threshold 160 6003(defcustom split-width-threshold 160
6006 "Minimum width for splitting a window to display a buffer. 6004 "Minimum width for splitting a window to display a buffer.
@@ -6012,7 +6010,7 @@ is nil, `display-buffer' cannot split windows horizontally."
6012 :group 'windows) 6010 :group 'windows)
6013(make-obsolete-variable 6011(make-obsolete-variable
6014 'split-width-threshold 6012 'split-width-threshold
6015 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6013 "use 2nd arg of `display-buffer' instead." "24.1")
6016 6014
6017(defcustom even-window-heights t 6015(defcustom even-window-heights t
6018 "If non-nil `display-buffer' will try to even window heights. 6016 "If non-nil `display-buffer' will try to even window heights.
@@ -6024,7 +6022,7 @@ window that appears above or below the selected window."
6024 :group 'windows) 6022 :group 'windows)
6025(make-obsolete-variable 6023(make-obsolete-variable
6026 'even-window-heights 6024 'even-window-heights
6027 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6025 "use 2nd arg of `display-buffer' instead." "24.1")
6028 6026
6029(defvar display-buffer-mark-dedicated 'unset ; nil 6027(defvar display-buffer-mark-dedicated 'unset ; nil
6030 "Set and non-nil means `display-buffer' marks the windows it creates as dedicated. 6028 "Set and non-nil means `display-buffer' marks the windows it creates as dedicated.
@@ -6032,7 +6030,7 @@ The actual non-nil value of this variable will be copied to the
6032`window-dedicated-p' flag.") 6030`window-dedicated-p' flag.")
6033(make-obsolete-variable 6031(make-obsolete-variable
6034 'display-buffer-mark-dedicated 6032 'display-buffer-mark-dedicated
6035 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6033 "use 2nd arg of `display-buffer' instead." "24.1")
6036 6034
6037(defun window-splittable-p (window &optional horizontal) 6035(defun window-splittable-p (window &optional horizontal)
6038 "Return non-nil if `split-window-sensibly' may split WINDOW. 6036 "Return non-nil if `split-window-sensibly' may split WINDOW.