From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63967: 28.2; switch-to-buffer in normal window fails if minibuffer window is active Date: Sun, 11 Jun 2023 08:03:23 +0300 Message-ID: <83a5x6zj38.fsf@gnu.org> References: <83o7lo28e6.fsf@gnu.org> <83fs701uts.fsf@gnu.org> <83a5x81m33.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29644"; mail-complaints-to="usenet@ciao.gmane.io" Cc: al@petrofsky.org, rudalics@gmx.at, monnier@iro.umontreal.ca, 63967@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 11 07:04:27 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 1q8DFb-0007WD-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jun 2023 07:04:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8DFE-0004pg-6Y; Sun, 11 Jun 2023 01:04:04 -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 1q8DFC-0004pR-DH for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2023 01:04:02 -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 1q8DFC-0007Lq-40 for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2023 01:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8DFB-0003eL-Vs for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2023 01:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jun 2023 05:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63967 X-GNU-PR-Package: emacs Original-Received: via spool by 63967-submit@debbugs.gnu.org id=B63967.168645980213970 (code B ref 63967); Sun, 11 Jun 2023 05:04:01 +0000 Original-Received: (at 63967) by debbugs.gnu.org; 11 Jun 2023 05:03:22 +0000 Original-Received: from localhost ([127.0.0.1]:36548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8DEX-0003dF-J0 for submit@debbugs.gnu.org; Sun, 11 Jun 2023 01:03:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8DEU-0003cv-FJ for 63967@debbugs.gnu.org; Sun, 11 Jun 2023 01:03:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8DEO-0007IB-6f; Sun, 11 Jun 2023 01:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ATElBZtHKqpTaLXk30XaWLeVqon/lt/RlMvWPkC2HFM=; b=itBDDSp0Vrvy TguTpI5jSmTUjg2qA2o7txcQ3Ap2eDifpdo34h6nqFSc5jU0a8E5fTAUDRvEhwhxoCkw9RDl0eHZd Nwj0YjNBVwsGwYhImpLThy5sTSAgqIFSRH3WTrI/sxrma1/UEcQODklvg1Ck8bLBJMwV1y11wyXhW pifhlzJMlMOF4umc41xBfbDxXOsb4i/47VHsdMeXefIFR0rhH8O/AZF+i7K2j8bjAqz7oY9OrcE8I qNMT6l1kdP0Jp47uGePQ8rVximwecvThj5L+EkAAlqRvSqBOBRD2cKUuzFnYz/gN9VgiBXHwiUPlT nuv66pOt4KQIrXbSVjBUsg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8DEN-0000OT-Kv; Sun, 11 Jun 2023 01:03:11 -0400 In-Reply-To: (message from Alan Mackenzie on Sat, 10 Jun 2023 19:42:04 +0000) 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:263239 Archived-At: > Date: Sat, 10 Jun 2023 19:42:04 +0000 > Cc: Eli Zaretskii , al@petrofsky.org, rudalics@gmx.at, > 63967@debbugs.gnu.org > From: Alan Mackenzie > > > I understand why we do the `set_window_buffer` and set its start and > > point, but I can't see why we'd need to select the mini-window: > > presumably if it needed to be (re)selected that should have been handled > > by the window-config save&restore, no? > > There was a problem with the restoring of the window configuration > selecting a window other than the minibuffer; that is in circumstances > where the minibuffer window should have ended up being selected. > > Fset_window_configuration seems to be the troublesome function in this > scenario. As well as setting the window configuration, it also selects > a window. Where is that problem and its circumstances described? Is there some bug number or a discussion on emacs-devel that you could point to? > Perhaps we should modify the minibuffer code to note which window should > be current after the completion or abortion of the minibuffer read > action. Isn't that simply "the window which was selected before entering the minibuffer"?