]> git.eshelyaron.com Git - emacs.git/commit
Improve logic of tab handling when quitting windows (bug#71386)
authorJuri Linkov <juri@linkov.net>
Mon, 31 Mar 2025 17:40:17 +0000 (20:40 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 18:40:16 +0000 (20:40 +0200)
commitb2b3dc6e54d9031e79e8961b8e426ae102cc1442
treec5ce8c7c296d3622dfb7d89cf79ec987452efde7
parentfc104a7748ae68fece9f1345667b713ad9209f3f
Improve logic of tab handling when quitting windows (bug#71386)

* lisp/window.el (window-deletable-p): Add tab logic that returns
the symbol 'tab' for a set of predefined conditions.
(window--delete): Call 'tab-bar-close-tab' when 'window-deletable-p'
returns the symbol 'tab'.
(quit-restore-window): Remove tab logic and merge it with frame logic.

* test/lisp/tab-bar-tests.el (tab-bar-tests-close-other-tabs-default)
(tab-bar-tests-close-other-tabs-with-arg): Clean up tabs afterwards.
(tab-bar-tests-quit-restore-window): New test.

(cherry picked from commit a97a61b630624f5a6ec917db92e2985c56b20aa0)
lisp/window.el
test/lisp/tab-bar-tests.el