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#52491: 28.0.90; Regression in window deletion with minibuffer Date: Thu, 16 Dec 2021 19:28:30 +0200 Organization: LINKOV.NET Message-ID: <865yro7csh.fsf@mail.linkov.net> References: <865yrqsxmu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15461"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) To: 52491@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 16 18:38:34 2021 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 1mxui9-0003ry-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Dec 2021 18:38:33 +0100 Original-Received: from localhost ([::1]:39230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxui8-00039w-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Dec 2021 12:38:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxufj-0007Nm-Py for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxufj-00027M-HQ for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxufj-00061e-FS for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Dec 2021 17:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52491 X-GNU-PR-Package: emacs Original-Received: via spool by 52491-submit@debbugs.gnu.org id=B52491.163967612923084 (code B ref 52491); Thu, 16 Dec 2021 17:36:03 +0000 Original-Received: (at 52491) by debbugs.gnu.org; 16 Dec 2021 17:35:29 +0000 Original-Received: from localhost ([127.0.0.1]:36584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxufB-00060B-IE for submit@debbugs.gnu.org; Thu, 16 Dec 2021 12:35:29 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxufA-0005zW-2a for 52491@debbugs.gnu.org; Thu, 16 Dec 2021 12:35:28 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 4EA9CC000A for <52491@debbugs.gnu.org>; Thu, 16 Dec 2021 17:35:20 +0000 (UTC) In-Reply-To: <865yrqsxmu.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 14 Dec 2021 23:08:09 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:222511 Archived-At: > M-x ;; execute-extended-command > ;; minibuffer-complete > ;; switch-to-completions > q ;; quit-window > > Point moves to the *scratch* buffer. This is a regression. > In emacs-27 it moved to the minibuffer. > > The problem is that delete-window now uses get-mru-window > to get the window to select after deleting the completions window. > But get-mru-window ignores the minibuffer window. There is another problem: M-x ;; execute-extended-command ;; switch-to-completions C-- ;; negative-argument C-x o ;; other-window C-x o ;; other-window q ;; quit-window After switching to the *scratch* buffer with ‘C-- C-x o’, and back to the *Completions* buffer with ‘C-x o’, then ‘q’ (quit-window) selects the *scratch* window because it's the most-recently-used window. But in 27.2 it selected the minibuffer window.