emacs/doc
Nicolas Despres 77ff0df588 Prioritize split along the longest edge by default.
Currently, `split-window-sensibly' prefers to try to split
vertically first, disregarding the actual shape of the frame
or the user preferences.  This is a good default when Emacs
is taller than wider.  However, when Emacs is in full-screen
(landscape screen layout), trying to split vertically may not
be what the user expected, since there is plenty of space
available on the right.

Typical scenario: Emacs is in landscape layout, one buffer is
open in a window covering the entire frame.  Another buffer is
opened in a second window (C-x 4 f). Both splits are feasible
but users may prefer the horizontal one.

This patch preserves the behavior of the `split-height-threshold'
and `split-width-threshold' variables.  Splitting continues not
to be permitted if the edge length is below the threshold.

* lisp/window.el (split-window-sensibly): First tried split
direction follows user preferences.

* etc/NEWS: Add an entry for new variable
`split-window-preferred-direction'.
* doc/emacs/windows.texi: Document new variable.
2025-02-08 10:57:07 +02:00
..
emacs Prioritize split along the longest edge by default. 2025-02-08 10:57:07 +02:00
lispintro Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
lispref New function insert-special-event and special event sleep-event 2025-02-07 12:04:05 +01:00
man Update copyright year to 2025 2025-01-02 18:39:42 +01:00
misc More clearly define local module behavior in ERC 2025-02-07 20:21:36 -08:00
translations Update copyright year to 2025 2025-01-02 18:39:42 +01:00