diff options
| author | Juri Linkov | 2026-02-16 19:48:43 +0200 |
|---|---|---|
| committer | Juri Linkov | 2026-02-16 19:48:43 +0200 |
| commit | e3755a5eb8e29fb2cb286406463fabc0e1bdcef6 (patch) | |
| tree | c85db4768f44e0f966848f455915684ae6774995 | |
| parent | 509228fc6c026921c67459f21164e0325efc583b (diff) | |
| download | emacs-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/NEWS | 4 | ||||
| -rw-r--r-- | lisp/window.el | 11 |
2 files changed, 10 insertions, 5 deletions
| @@ -443,6 +443,10 @@ vertically first, so to get previous behavior, you can customize this | |||
| 443 | option to 'vertical'. The value 'horizontal' always prefers the | 443 | option to 'vertical'. The value 'horizontal' always prefers the |
| 444 | horizontal split. | 444 | horizontal split. |
| 445 | 445 | ||
| 446 | --- | ||
| 447 | The default value of 'split-width-threshold' is changed from 160 to 150. | ||
| 448 | After 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'. |
| 448 | With this argument non-nil, 'get-buffer-window-list' will include in the | 452 | With 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 | |||
| 7448 | window can (or shall) not be split, it is supposed to return nil. | 7448 | window can (or shall) not be split, it is supposed to return nil. |
| 7449 | The default is to call the function `split-window-sensibly' which | 7449 | The default is to call the function `split-window-sensibly' which |
| 7450 | tries to split the window in a way which seems most suitable. | 7450 | tries to split the window in a way which seems most suitable. |
| 7451 | You can customize the options `split-height-threshold' and/or | 7451 | You 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 |
| 7453 | prefer either vertical or horizontal splitting. | 7453 | to have `split-window-sensibly' prefer either vertical or |
| 7454 | horizontal splitting. | ||
| 7454 | 7455 | ||
| 7455 | If you set this to any other function, bear in mind that the | 7456 | If 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. |
| 7487 | If this is an integer, `split-window-sensibly' may split a window | 7488 | If this is an integer, `split-window-sensibly' may split a window |
| 7488 | horizontally only if it has at least this many columns. If this | 7489 | horizontally only if it has at least this many columns. If this |
| 7489 | is nil, `split-window-sensibly' is not allowed to split a window | 7490 | is nil, `split-window-sensibly' is not allowed to split a window |
| 7490 | horizontally." | 7491 | horizontally." |
| 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) |