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: Tue, 25 Oct 2022 22:14:03 +0300 Organization: LINKOV.NET Message-ID: <86bkpz7m2s.fsf@mail.linkov.net> References: <87h6zvnrdl.fsf@gmail.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="31770"; 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 Tue Oct 25 21:21:42 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 1onPUc-000850-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Oct 2022 21:21:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onPT8-0008Je-6z; Tue, 25 Oct 2022 15:20:11 -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 1onPT1-0008Il-9J for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 15:20: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 1onPSz-0001YN-PQ for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onPSz-0003rX-KV for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 15:20: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: Tue, 25 Oct 2022 19:20:01 +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.166672557314798 (code B ref 58728); Tue, 25 Oct 2022 19:20:01 +0000 Original-Received: (at 58728) by debbugs.gnu.org; 25 Oct 2022 19:19:33 +0000 Original-Received: from localhost ([127.0.0.1]:52321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onPSX-0003qc-2M for submit@debbugs.gnu.org; Tue, 25 Oct 2022 15:19:33 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:63517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onPSV-0003qN-1L for 58728@debbugs.gnu.org; Tue, 25 Oct 2022 15:19:31 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 0B47C40006; Tue, 25 Oct 2022 19:19:23 +0000 (UTC) In-Reply-To: <87h6zvnrdl.fsf@gmail.com> (Visuwesh's message of "Sun, 23 Oct 2022 09:06:06 +0530") 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:246167 Archived-At: > I'm not sure if this qualifies as a bug or as a feature request but: > minibuffers should follow tabs like they follow frames. To reproduce, > > 1. emacs -Q > 2. C-x t 2 > 3. M-x > 4. C-x t o > > Observe how the minibuffer is not active in this tab so you can't > complete your query. You need to switch back to the tab where the M-x > command was run to get back the minibuffer. > [ The current behaviour makes for really confusing behaviour when > recursive minibuffers are involved. ] Currently the only code that handles the active minibuffer is in tab-bar-new-tab-to: ;; Handle the case when it's called in the active minibuffer. (when (minibuffer-selected-window) (select-window (minibuffer-selected-window))) that ensures that the minibuffer is not selected before creating a new tab. So should the new feature handle all cases: when a new tab is created and when switching existing tabs? In both cases the minibuffer should follow the selected tab? Currently selecting a tab just restores its window-configuration. Should it activate the same minibuffer that was active in a previous tab? What if two tabs have separate minibuffers? Which minibuffer wins? In a test case: 1. emacs -Q 2. C-x t 2 3. M-x 4. C-x t o 5. M-: 6. C-x t o what minibuffer should be displayed? Probably the last.