]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-bar.el (tab-bar-select-tab): Set window-state-put WINDOW arg to nil
authorJuri Linkov <juri@linkov.net>
Tue, 9 Mar 2021 17:27:31 +0000 (19:27 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 9 Mar 2021 17:27:31 +0000 (19:27 +0200)
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

index 917b5e496b875916bb187ee864b4abbeb18cca2c..2f97bd4eaf92467f38a2ffe376666863ea73d8c5 100644 (file)
@@ -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)