emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 99add09d5e1: tab-bar-new-tab: inhibit side-window checks


From: Eli Zaretskii
Subject: emacs-29 99add09d5e1: tab-bar-new-tab: inhibit side-window checks
Date: Mon, 24 Apr 2023 07:49:10 -0400 (EDT)

branch: emacs-29
commit 99add09d5e16a4fef752abedc3ee96989f1b9ae2
Author: Benson Chu <bensonchu457@gmail.com>
Commit: Eli Zaretskii <eliz@gnu.org>

    tab-bar-new-tab: inhibit side-window checks
    
    Previously, calling 'tab-bar-new-tab-to' only removed the
    'window-side' property on the currently selected window,
    and then a call to 'delete-other-windows' was made to
    ensure that the selected window was the only window.
    We can skip this check by shadowing 'window--sides-inhibit-check'
    to t.
    * lisp/tab-bar.el (tab-bar-new-tab-to): Inhibit side-window checks.
    (Bug#62427)
    
    Copyright-paperwork-exempt: yes
---
 lisp/tab-bar.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index dce6fa735fc..c7983146bf9 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1552,15 +1552,14 @@ After the tab is created, the hooks in
       ;; Handle the case when it's called in the active minibuffer.
       (when (minibuffer-selected-window)
         (select-window (minibuffer-selected-window)))
-      ;; Remove window parameters that can cause problems
-      ;; with `delete-other-windows' and `split-window'.
-      (unless (eq tab-bar-new-tab-choice 'clone)
-        (set-window-parameter nil 'window-atom nil)
-        (set-window-parameter nil 'window-side nil))
-      (let ((ignore-window-parameters t))
+      (let ((ignore-window-parameters t)
+            (window--sides-inhibit-check t))
         (if (eq tab-bar-new-tab-choice 'clone)
             ;; Create new unique windows with the same layout
             (window-state-put (window-state-get))
+          ;; Remove window parameters that can cause problems
+          ;; with `delete-other-windows' and `split-window'.
+          (set-window-parameter nil 'window-atom nil)
           (delete-other-windows)
           (if (eq tab-bar-new-tab-choice 'window)
               ;; Create new unique window from remaining window



reply via email to

[Prev in Thread] Current Thread [Next in Thread]