Variable: window-sides-slots

window-sides-slots is a customizable variable defined in window.el.gz.

Value

(nil nil nil nil)

Documentation

Number of available side window slots on each side of a frame.

The value is a list of four elements specifying the maximum number of side windows that may be created on the left, top, right and bottom side of any frame.

If an element is a number, display-buffer-in-side-window will refrain from making a new side window if the number of windows on that side is equal to or exceeds that number. Rather, it will reuse the window whose window-slot value is nearest to the slot specified via its ALIST argument. If an element is nil, this means there's no bound on the number of windows on that side.

This variable was added, or its default value changed, in Emacs 24.1.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom window-sides-slots '(nil nil nil nil)
  "Number of available side window slots on each side of a frame.
The value is a list of four elements specifying the maximum
number of side windows that may be created on the left, top,
right and bottom side of any frame.

If an element is a number, `display-buffer-in-side-window' will
refrain from making a new side window if the number of windows on
that side is equal to or exceeds that number.  Rather, it will
reuse the window whose `window-slot' value is nearest to the slot
specified via its ALIST argument.  If an element is nil, this
means there's no bound on the number of windows on that side."
  :version "24.1"
  :risky t
  :type
  '(list
    :value (nil nil nil nil)
    (choice
     :tag "Left"
     :help-echo "Maximum number of left side windows."
     :value nil
     :format "%[Left%] %v\n"
     (const :tag "Unlimited" :format "%t" nil)
     (integer :tag "Number" :value 2 :size 5))
    (choice
     :tag "Top"
     :help-echo "Maximum number of top side windows."
     :value nil
     :format "%[Top%] %v\n"
     (const :tag "Unlimited" :format "%t" nil)
     (integer :tag "Number" :value 3 :size 5))
    (choice
     :tag "Right"
     :help-echo "Maximum number of right side windows."
     :value nil
     :format "%[Right%] %v\n"
     (const :tag "Unlimited" :format "%t" nil)
     (integer :tag "Number" :value 2 :size 5))
    (choice
     :tag "Bottom"
     :help-echo "Maximum number of bottom side windows."
     :value nil
     :format "%[Bottom%] %v\n"
     (const :tag "Unlimited" :format "%t" nil)
     (integer :tag "Number" :value 3 :size 5)))
  :group 'windows)