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#64373: 29.0.90; C-x t o while in minibuffer copies the current tab to the next tab Date: Fri, 30 Jun 2023 21:52:56 +0300 Organization: LINKOV.NET Message-ID: <86v8f4bx4n.fsf@mail.linkov.net> References: <86mt0gdcb4.fsf@mail.linkov.net> <87a5wgokn4.fsf@catern.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 64373@debbugs.gnu.org, Spencer Baugh To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 30 20:54:21 2023 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 1qFJG8-0004cn-3p for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jun 2023 20:54:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFJFv-0001g3-KM; Fri, 30 Jun 2023 14:54:08 -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 1qFJFr-0001fU-Ha for bug-gnu-emacs@gnu.org; Fri, 30 Jun 2023 14:54:03 -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 1qFJFq-0004UY-DE for bug-gnu-emacs@gnu.org; Fri, 30 Jun 2023 14:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFJFp-0006Th-Ud for bug-gnu-emacs@gnu.org; Fri, 30 Jun 2023 14:54:01 -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, 30 Jun 2023 18:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64373 X-GNU-PR-Package: emacs Original-Received: via spool by 64373-submit@debbugs.gnu.org id=B64373.168815122624880 (code B ref 64373); Fri, 30 Jun 2023 18:54:01 +0000 Original-Received: (at 64373) by debbugs.gnu.org; 30 Jun 2023 18:53:46 +0000 Original-Received: from localhost ([127.0.0.1]:55778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFJFZ-0006TD-TQ for submit@debbugs.gnu.org; Fri, 30 Jun 2023 14:53:46 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFJFX-0006S5-6J for 64373@debbugs.gnu.org; Fri, 30 Jun 2023 14:53:44 -0400 X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 90CD0C0002; Fri, 30 Jun 2023 18:53:34 +0000 (UTC) In-Reply-To: <87a5wgokn4.fsf@catern.com> (sbaugh@catern.com's message of "Fri, 30 Jun 2023 18:44:17 +0000 (UTC)") 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264332 Archived-At: >>> 1. emacs -Q >>> 2. C-x t 2 to create a new tab >>> 3. C-x b *Messages* RET >>> Now the first tab should have only *scratch* open, >>> and the second tab should have only *Messages* open, >>> and we're in the second tab. >>> 4. M-: (read-from-minibuffer "") RET >>> 5. While in minibuffer, C-x t o to switch to the first tab >>> 6. RET to exit minibuffer >>> 7. The first tab now has *Messages* open. >>> >>> This also applies to more complicated window configurations: the whole >>> window configuration will be copied from the tab that the minibuffer was >>> first open in, to the tab that was entered with C-x t o. >>> >>> This also happens if the minibuffer is exited with C-g. >> >> Not a bug, this is the documented behavior. >> You can customize read-minibuffer-restore-windows to nil >> if you don't like this. > > We should also restore the current tab, then. Because right now we're > restoring the window configuration, but not the current tab. > > If we did that, then this would behave as expected: We'd restore the > current tab, then restore the window configuration in that tab. We should not switch tabs without user's consent. Even restoring the window configuration is the wrong thing to do. I don't know why read-minibuffer-restore-windows should be enabled by default. Maybe it should be disabled at least when the active minibuffer switches to another tab.