]> git.eshelyaron.com Git - emacs.git/commit
Allow split-window-sensibly to split threshold in further edge case
authorJoão Távora <joaotavora@gmail.com>
Mon, 23 Oct 2017 08:05:32 +0000 (09:05 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Nov 2017 16:13:37 +0000 (16:13 +0000)
commit5d34e1b2881caa5743816030c2e9cdcda58e9719
tree99f29ab30b1c0b90f33ea397093724914587306e
parent2a973edeacefcabb9fd8024188b7e167f0f9a9b6
Allow split-window-sensibly to split threshold in further edge case

As a fallback, and to avoid creating a frame, split-window-sensibly
would previously disregard split-height-threshold if the window to be
split is the frame's root window.

This change generalizes that: it disregards the threshold if the
window to be split is the frame's only _usable_ window (it is either
the only one, as before, or all the other windows are dedicated to
some buffer and thus cannot be touched).

This is required for the fix to bug#28814.

* lisp/window.el (split-height-threshold): Adjust doc to match
split-window-sensibly.
(split-window-sensibly): Also disregard threshold if all other
windows are dedicated.
lisp/window.el