From: Juri Linkov Date: Sat, 25 Sep 2021 19:24:48 +0000 (+0300) Subject: * lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters. X-Git-Tag: emacs-28.0.90~623 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a1a63bb794156af38ac0ed55fd453705a183ebcd;p=emacs.git * lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters. Suggested by Adam Porter in https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01758.html --- diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index d0a1b3b70bf..ceacd85971d 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1244,7 +1244,8 @@ 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))) - (delete-other-windows) + (let ((ignore-window-parameters t)) + (delete-other-windows)) ;; Create a new window to get rid of old window parameters ;; (e.g. prev/next buffers) of old window. (split-window) (delete-window)