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#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame Date: Tue, 05 Jul 2022 19:24:02 +0300 Message-ID: <83zghn7ckd.fsf@gnu.org> References: <3984f6ec-1988-f0ae-d44c-f4b92a202938@gmx.at> <83o7yb5lqe.fsf@gnu.org> <83bku69nn2.fsf@gnu.org> <83iloc8yzs.fsf@gnu.org> <83h73w8f7i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11611"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, 56305@debbugs.gnu.org, monnier@iro.umontreal.ca To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 05 18:41:55 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 1o8lcZ-0002ow-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 18:41:55 +0200 Original-Received: from localhost ([::1]:32826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8lcX-0008Ki-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 12:41:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8lME-0000s9-Qq for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2022 12:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8lME-0007HV-AB for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2022 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8lME-0003ZY-63 for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2022 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2022 16:25:02 +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.165703826013676 (code B ref 56305); Tue, 05 Jul 2022 16:25:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 5 Jul 2022 16:24:20 +0000 Original-Received: from localhost ([127.0.0.1]:51410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8lLX-0003YW-QH for submit@debbugs.gnu.org; Tue, 05 Jul 2022 12:24:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8lLV-0003YJ-Eu for 56305@debbugs.gnu.org; Tue, 05 Jul 2022 12:24:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8lLO-0007EP-SF; Tue, 05 Jul 2022 12:24:10 -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=S3uKREvWRSuL60dEogxIDj5k/lj3/BA5A80mYsMxnbw=; b=f4q59WYjg6FN Joi/vidQSAO5J+NjsWA8eG/+eEiKY9i3HsxTIfUi97g6oUu8SuKJcjgmC01NayVW/Awe08KqhHp+x oMtLO8aqmSqkFiKHkv/+U8rfh99zgjQlHsUOo3+Arvc33ZMfDmD3E4OnbSdEWLXwWejgv/D5EPUYa px6t0VL5rUM9Mo1A4I4OF9mqQzVEUDZ7JCT2lSCtSLgd9OqcRNOG8rsFKn1FCYZ7PLAclAUm8q8ur 0rvjWshlRmhMIUI5IJ883C9Z/Wuko8R+iN2YDFKgqGcXeYmLazCJqOfbqiQGOhWOkBJ1kgZl0vnC6 2g4e40ir+b4+NAsnNGCo7g==; Original-Received: from [87.69.77.57] (port=1763 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 1o8lLO-00057E-9n; Tue, 05 Jul 2022 12:24:10 -0400 In-Reply-To: (message from Alan Mackenzie on Tue, 5 Jul 2022 15:59:00 +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" Xref: news.gmane.io gmane.emacs.bugs:236137 Archived-At: > Date: Tue, 5 Jul 2022 15:59:00 +0000 > Cc: rudalics@gmx.at, monnier@iro.umontreal.ca, 56305@debbugs.gnu.org > From: Alan Mackenzie > > > > After typing C-x C-c, rather than exiting, this particular Emacs > > > prompts: > > > > "Active processes exist; kill them and exit anyway? (yes or no) " > > > > on MBF and it opens a window *Process List* on NF. > > > Sounds right to me: the frame where Emacs presents some important > > information has focus. If you think this is wrong, please tell why. > > Well, I don't have a firm opinion on this, but yes-or-no-p is an active > function, here. We always leave the minibuffer as the selected window > for this function, certainly when we've a normal minibuffer in the frame. > Why should it be different when we've got a minibuffer-only frame? > > Also, the mechanism by which NF gets the focus in the bug scenario > appears to be random. When the focus starts out in NF and we do C-x C-c, > the focus moves to MBF. This is inconsistent. > > The place where the randomness takes effect is the > > Fredirect_frame_focus (gfocus, frame); > > in do_switch_frame I drew attention to yesterday. Do you have a suggestion for a change there to improve the behavior?