From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame Date: Thu, 30 Jun 2022 20:32:06 +0000 Message-ID: References: <3984f6ec-1988-f0ae-d44c-f4b92a202938@gmx.at> <83o7yb5lqe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , 56305@debbugs.gnu.org, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 22:33:38 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 1o70r4-0001rq-P4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 22:33:38 +0200 Original-Received: from localhost ([::1]:44738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o70r3-0005gl-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 16:33:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o70qU-0005Jm-Uw for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 16:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o70qT-0000Co-Lm for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 16:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o70qT-0000o1-IU for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 16:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2022 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56305 X-GNU-PR-Package: emacs Original-Received: via spool by 56305-submit@debbugs.gnu.org id=B56305.16566211363037 (code B ref 56305); Thu, 30 Jun 2022 20:33:01 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 30 Jun 2022 20:32:16 +0000 Original-Received: from localhost ([127.0.0.1]:35699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o70pj-0000mu-UW for submit@debbugs.gnu.org; Thu, 30 Jun 2022 16:32:16 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:33432 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1o70pi-0000mh-Qy for 56305@debbugs.gnu.org; Thu, 30 Jun 2022 16:32:15 -0400 Original-Received: (qmail 61760 invoked by uid 3782); 30 Jun 2022 20:32:08 -0000 Original-Received: from acm.muc.de (p4fe15adf.dip0.t-ipconnect.de [79.225.90.223]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 30 Jun 2022 22:32:08 +0200 Original-Received: (qmail 31957 invoked by uid 1000); 30 Jun 2022 20:32:06 -0000 Content-Disposition: inline In-Reply-To: <83o7yb5lqe.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:235749 Archived-At: Hello, Eli and Martin. On Wed, Jun 29, 2022 at 22:10:49 +0300, Eli Zaretskii wrote: > > Date: Wed, 29 Jun 2022 19:54:44 +0200 > > From: martin rudalics > > With emacs -Q --load "~/mini.el" which contains the three lines > > (setq use-dialog-box nil) > > (setq default-frame-alist '((minibuffer . nil))) > > (shell) > > and type C-x C-c in the minibuffer frame. This asks a 'yes-or-no-p' > > question in the minibuffer frame but selects the *Process List* window > > on the other frame. > > FWICT this worked correctly until Emacs 26, was broken in Emacs 27, > > returned to work in Emacs 28.1 and is now broken on both, release and > > master branch, again. > Alan, could you please look into this? Emacs 28.2 is about to start > pretest. In your (Martin's) scenario, the yes-or-no-p seems to work just before the following commit, but goes into an infinite loop after it: commit dfa3e6f424b20fe27d9041b2ce7d69811df5d8cd Author: Alan Mackenzie Date: Fri May 20 20:18:38 2022 +0000 Restore the Fselect_window call in gui_consider_frame_title. There's something suspicious in that commit, namely: * src/frame.c (do_switch_frame): When the selected window in the target frame is the mini-window, switch away from this window unless there is a valid minibuffer there. Maybe that's a red herring, but it might be relevant. I'll look at this in more detail tomorrow. > Thanks. -- Alan Mackenzie (Nuremberg, Germany).