]> git.eshelyaron.com Git - emacs.git/commit
When ignoring parameters let 'split-window' split root window (Bug#76317)
authorMartin Rudalics <rudalics@gmx.at>
Mon, 17 Feb 2025 08:29:37 +0000 (09:29 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:52:07 +0000 (09:52 +0100)
commit9978d3bce41c81f0f6358467a90b9d1d6c95c7a8
treea92ca5caaa13e5dbb7b1c2013b3782969ff6f3fa
parent99070a0a94a3c24559aa130ff5acf67d8009471a
When ignoring parameters let 'split-window' split root window (Bug#76317)

This fixes a behavior introduced by the fix of Bug#73527 that splits the
main window when the caller asks for splitting the root window.

* lisp/window.el (window--make-major-side-window): Bind
'ignore-window-parameters' to t so 'split-window' won't mess
with the WINDOW argument when it specifies the root window.
(split-window): If 'ignore-window-parameters' is non-nil, don't
try to split the main window instead of the root window.

(cherry picked from commit 310f62a9489b9c00d5e60d2ab16e7dc54afcadb9)
lisp/window.el