emacs-31 86b65d82c7f: Turn off combination resizing in 'window--transpose-1' (Bug#81406)

Martin Rudalics via Mailing list for Emacs changes <[email protected]> Mon, 13 Jul 2026 10:00:15 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit 86b65d82c7fd903e987dd606a4ade0dec460a27c
Author: Martin Rudalics <[email protected]>
Commit: Martin Rudalics <[email protected]>

    Turn off combination resizing in 'window--transpose-1' (Bug#81406)
    
    * lisp/window-x.el (window--transpose-1): Bind
    'window-combination-resize' to nil around splitting (Bug#81406).
---
 lisp/window-x.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/window-x.el b/lisp/window-x.el
index 813b8aed9f3..21a1f422562 100644
--- a/lisp/window-x.el
+++ b/lisp/window-x.el
@@ -243,7 +243,9 @@ ones in `window--transpose'."
   ;; `flen' is max size the window could be converted to the opposite
   ;; of the given split type.
   (let ((parent-window-is-set t)
-	(flen (if (xor no-resize (car subtree))
+        ;; Make sure combination resizing is turned off (Bug#81406).
+        window-combination-resize
+        (flen (if (xor no-resize (car subtree))
 		  (float (window-pixel-width cwin))
 		(float (window-pixel-height cwin)))))
     (mapc