From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#58728: 29.0.50; Minibuffer does not follow tabs Date: Fri, 28 Oct 2022 10:20:12 +0300 Organization: LINKOV.NET Message-ID: <86wn8kz9tf.fsf@mail.linkov.net> References: <87h6zvnrdl.fsf@gmail.com> <86bkpz7m2s.fsf@mail.linkov.net> <87tu3rcqkf.fsf@gmail.com> <86ilk5vh3w.fsf@mail.linkov.net> <87tu3p2vog.fsf@gmail.com> <86fsf81mdt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6863"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 58728@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 09:32:00 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooJqS-0001fh-NB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 09:32:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooJpw-0003rr-7O; Fri, 28 Oct 2022 03:31:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooJpW-0003hn-VA for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 03:31:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooJpW-0003s8-Da for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 03:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooJpW-00049e-1f for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2022 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58728 X-GNU-PR-Package: emacs Original-Received: via spool by 58728-submit@debbugs.gnu.org id=B58728.166694220415762 (code B ref 58728); Fri, 28 Oct 2022 07:31:02 +0000 Original-Received: (at 58728) by debbugs.gnu.org; 28 Oct 2022 07:30:04 +0000 Original-Received: from localhost ([127.0.0.1]:60226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooJoZ-000469-O8 for submit@debbugs.gnu.org; Fri, 28 Oct 2022 03:30:04 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:54555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooJoW-000459-O2 for 58728@debbugs.gnu.org; Fri, 28 Oct 2022 03:30:01 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 1229324000B; Fri, 28 Oct 2022 07:29:51 +0000 (UTC) In-Reply-To: <86fsf81mdt.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 28 Oct 2022 09:40:46 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246399 Archived-At: > OTOH, window-state handles it correctly, because it just doesn't mess > with minibuffers: Actually, it's possible not to mess with minibiffers with window-configurations as well: 1. emacs -Q 2. M-: (setq wc (current-window-configuration)) 3. C-x C-f 4. M-x 5. M-: (set-window-configuration wc nil 'DONT-SET-MINIWINDOW) 6. C-g Please try such a patch: diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index da1edf3084e..31009e8a7ec 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1136,7 +1144,7 @@ tab-bar-select-tab (wc-history-back (alist-get 'wc-history-back to-tab)) (wc-history-forward (alist-get 'wc-history-forward to-tab))) - (set-window-configuration wc) + (set-window-configuration wc nil 'DONT-SET-MINIWINDOW) ;; set-window-configuration does not restore the value of ;; point in the current buffer, so restore it separately. @@ -1900,7 +1908,7 @@ tab-bar-history-back (cons tab-bar-history-old (gethash (selected-frame) tab-bar-history-forward)) tab-bar-history-forward) - (set-window-configuration wc) + (set-window-configuration wc nil 'DONT-SET-MINIWINDOW) (when (and (markerp wc-point) (marker-buffer wc-point)) (goto-char wc-point))) (message "No more tab back history")))) @@ -1919,7 +1927,7 @@ tab-bar-history-forward (cons tab-bar-history-old (gethash (selected-frame) tab-bar-history-back)) tab-bar-history-back) - (set-window-configuration wc) + (set-window-configuration wc nil 'DONT-SET-MINIWINDOW) (when (and (markerp wc-point) (marker-buffer wc-point)) (goto-char wc-point))) (message "No more tab forward history"))))