Change the default value of 'split-width-threshold' from 160 to 150

* lisp/window.el (split-width-threshold): Change the default value
from 160 to 150 (bug#80050).
(split-window-preferred-function):
Mention 'split-window-preferred-direction' in the docstring.
This commit is contained in:
Juri Linkov 2026-02-16 19:48:43 +02:00
parent 509228fc6c
commit e3755a5eb8
2 changed files with 10 additions and 5 deletions

View file

@ -443,6 +443,10 @@ vertically first, so to get previous behavior, you can customize this
option to 'vertical'. The value 'horizontal' always prefers the
horizontal split.
---
The default value of 'split-width-threshold' is changed from 160 to 150.
After splitting it's still comfortable to read text filled to 75 columns.
+++
*** New argument INDIRECT for 'get-buffer-window-list'.
With this argument non-nil, 'get-buffer-window-list' will include in the

View file

@ -7448,9 +7448,10 @@ supposed to split that window and return the new window. If the
window can (or shall) not be split, it is supposed to return nil.
The default is to call the function `split-window-sensibly' which
tries to split the window in a way which seems most suitable.
You can customize the options `split-height-threshold' and/or
`split-width-threshold' in order to have `split-window-sensibly'
prefer either vertical or horizontal splitting.
You can customize the options `split-window-preferred-direction',
`split-height-threshold' and/or `split-width-threshold' in order
to have `split-window-sensibly' prefer either vertical or
horizontal splitting.
If you set this to any other function, bear in mind that the
`display-buffer' routines may call this function two times. The
@ -7482,14 +7483,14 @@ value of this variable."
:version "23.1"
:group 'windows)
(defcustom split-width-threshold 160
(defcustom split-width-threshold 150
"Minimum width for splitting windows sensibly.
If this is an integer, `split-window-sensibly' may split a window
horizontally only if it has at least this many columns. If this
is nil, `split-window-sensibly' is not allowed to split a window
horizontally."
:type '(choice (const nil) (integer :tag "columns"))
:version "23.1"
:version "31.1"
:group 'windows)
(defun window-splittable-p (window &optional horizontal)