mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Default split-window-preferred-direction to 'longest'
* lisp/window.el (split-window-preferred-direction): Change default value to 'longest'.
This commit is contained in:
parent
54775983ac
commit
75c09b03ed
2 changed files with 16 additions and 15 deletions
8
etc/NEWS
8
etc/NEWS
|
|
@ -392,10 +392,10 @@ for which you can use '(category . tex-shell)'.
|
|||
+++
|
||||
*** New user option 'split-window-preferred-direction'.
|
||||
Users can now choose in which direction Emacs tries to split first:
|
||||
vertical or horizontal. With this new setting, when the frame is in
|
||||
landscape shape for instance, Emacs could split horizontally before
|
||||
splitting vertically. The default setting preserves Emacs historical
|
||||
behavior to try to split vertically first.
|
||||
vertically or horizontally. The new default is to prefer to split
|
||||
horizontally if the frame is landscape and vertically if it is portrait.
|
||||
You can customize this option to 'vertical' to restore Emacs's old
|
||||
behavior of always preferring vertical splits.
|
||||
|
||||
+++
|
||||
*** New argument INDIRECT for 'get-buffer-window-list'.
|
||||
|
|
|
|||
|
|
@ -7532,18 +7532,19 @@ hold:
|
|||
(* 2 (max window-min-height
|
||||
(if mode-line-format 2 1))))))))))
|
||||
|
||||
(defcustom split-window-preferred-direction 'vertical
|
||||
(defcustom split-window-preferred-direction 'longest
|
||||
"The first direction tried when Emacs needs to split a window.
|
||||
This variable controls in which order `split-window-sensibly' will try to
|
||||
split the window. That order specially matters when both dimensions of
|
||||
the frame are long enough to be split according to
|
||||
`split-width-threshold' and `split-height-threshold'. If this is set to
|
||||
`vertical' (the default), `split-window-sensibly' tries to split
|
||||
vertically first and then horizontally. If set to `horizontal' it does
|
||||
the opposite. If set to `longest', the first direction tried
|
||||
depends on the frame shape: in landscape orientation it will be like
|
||||
`horizontal', but in portrait it will be like `vertical'. Basically,
|
||||
the longest of the two dimension is split first.
|
||||
This variable controls in which order `split-window-sensibly' will try
|
||||
to split the window. That order specially matters when both dimensions
|
||||
of the frame are long enough to be split according to
|
||||
`split-width-threshold' and `split-height-threshold'.
|
||||
If set to `vertical', `split-window-sensibly' tries to split vertically
|
||||
first and then horizontally.
|
||||
If set to `horizontal' it does the opposite.
|
||||
If set to `longest' (the default), the first direction tried depends on
|
||||
the frame shape: in landscape orientation it will be like `horizontal',
|
||||
but in portrait it will be like `vertical'. In other words, the longest
|
||||
of the two dimension is split first.
|
||||
|
||||
If both `split-width-threshold' and `split-height-threshold' cannot be
|
||||
satisfied, it will fallback to split vertically.
|
||||
|
|
|
|||
Loading…
Reference in a new issue