aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2026-02-16 19:48:43 +0200
committerJuri Linkov2026-02-16 19:48:43 +0200
commite3755a5eb8e29fb2cb286406463fabc0e1bdcef6 (patch)
treec85db4768f44e0f966848f455915684ae6774995
parent509228fc6c026921c67459f21164e0325efc583b (diff)
downloademacs-e3755a5eb8e29fb2cb286406463fabc0e1bdcef6.tar.gz
emacs-e3755a5eb8e29fb2cb286406463fabc0e1bdcef6.zip
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.
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/window.el11
2 files changed, 10 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index b18bfc980ee..7a5a8f30b03 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -443,6 +443,10 @@ vertically first, so to get previous behavior, you can customize this
443option to 'vertical'. The value 'horizontal' always prefers the 443option to 'vertical'. The value 'horizontal' always prefers the
444horizontal split. 444horizontal split.
445 445
446---
447The default value of 'split-width-threshold' is changed from 160 to 150.
448After splitting it's still comfortable to read text filled to 75 columns.
449
446+++ 450+++
447*** New argument INDIRECT for 'get-buffer-window-list'. 451*** New argument INDIRECT for 'get-buffer-window-list'.
448With this argument non-nil, 'get-buffer-window-list' will include in the 452With this argument non-nil, 'get-buffer-window-list' will include in the
diff --git a/lisp/window.el b/lisp/window.el
index 2327ffcd5f2..f42784388f5 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7448,9 +7448,10 @@ supposed to split that window and return the new window. If the
7448window can (or shall) not be split, it is supposed to return nil. 7448window can (or shall) not be split, it is supposed to return nil.
7449The default is to call the function `split-window-sensibly' which 7449The default is to call the function `split-window-sensibly' which
7450tries to split the window in a way which seems most suitable. 7450tries to split the window in a way which seems most suitable.
7451You can customize the options `split-height-threshold' and/or 7451You can customize the options `split-window-preferred-direction',
7452`split-width-threshold' in order to have `split-window-sensibly' 7452`split-height-threshold' and/or `split-width-threshold' in order
7453prefer either vertical or horizontal splitting. 7453to have `split-window-sensibly' prefer either vertical or
7454horizontal splitting.
7454 7455
7455If you set this to any other function, bear in mind that the 7456If you set this to any other function, bear in mind that the
7456`display-buffer' routines may call this function two times. The 7457`display-buffer' routines may call this function two times. The
@@ -7482,14 +7483,14 @@ value of this variable."
7482 :version "23.1" 7483 :version "23.1"
7483 :group 'windows) 7484 :group 'windows)
7484 7485
7485(defcustom split-width-threshold 160 7486(defcustom split-width-threshold 150
7486 "Minimum width for splitting windows sensibly. 7487 "Minimum width for splitting windows sensibly.
7487If this is an integer, `split-window-sensibly' may split a window 7488If this is an integer, `split-window-sensibly' may split a window
7488horizontally only if it has at least this many columns. If this 7489horizontally only if it has at least this many columns. If this
7489is nil, `split-window-sensibly' is not allowed to split a window 7490is nil, `split-window-sensibly' is not allowed to split a window
7490horizontally." 7491horizontally."
7491 :type '(choice (const nil) (integer :tag "columns")) 7492 :type '(choice (const nil) (integer :tag "columns"))
7492 :version "23.1" 7493 :version "31.1"
7493 :group 'windows) 7494 :group 'windows)
7494 7495
7495(defun window-splittable-p (window &optional horizontal) 7496(defun window-splittable-p (window &optional horizontal)