emacs-diffs
[Top][All Lists]
Advanced

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

master 29458ec: * lisp/tab-bar.el (tab-bar-select-tab): Set window-state


From: Juri Linkov
Subject: master 29458ec: * lisp/tab-bar.el (tab-bar-select-tab): Set window-state-put WINDOW arg to nil
Date: Tue, 9 Mar 2021 12:27:50 -0500 (EST)

branch: master
commit 29458ec7d2843baa725f9b613d0e935df3a61301
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/tab-bar.el (tab-bar-select-tab): Set window-state-put WINDOW arg to 
nil
    
    WINDOW arg nil will always create a new window regardless of the value
    returned by 'frame-root-window' that is nondeterministic - it returns
    an internal window when there are more than 1 window on the frame/tab,
    otherwise it returns a live window that was reused between different tabs
    (bug#46904)
    (tab-prefix-map): Bind "u" to 'tab-undo'.
---
 lisp/tab-bar.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 917b5e4..2f97bd4 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -766,7 +766,7 @@ ARG counts from 1."
                      tab-bar-history-forward)))
 
          (ws
-          (window-state-put ws (frame-root-window (selected-frame)) 'safe)))
+          (window-state-put ws nil 'safe)))
 
         (setq tab-bar-history-omit t)
 
@@ -1777,6 +1777,7 @@ When `switch-to-buffer-obey-display-actions' is non-nil,
 (define-key tab-prefix-map "2" 'tab-new)
 (define-key tab-prefix-map "1" 'tab-close-other)
 (define-key tab-prefix-map "0" 'tab-close)
+(define-key tab-prefix-map "u" 'tab-undo)
 (define-key tab-prefix-map "o" 'tab-next)
 (define-key tab-prefix-map "O" 'tab-previous)
 (define-key tab-prefix-map "m" 'tab-move)



reply via email to

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