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 05:29:21 +0300 Message-ID: <83h73w8f7i.fsf@gnu.org> References: <3984f6ec-1988-f0ae-d44c-f4b92a202938@gmx.at> <83o7yb5lqe.fsf@gnu.org> <83bku69nn2.fsf@gnu.org> <83iloc8yzs.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29431"; 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 04:30:51 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 1o8YKx-0007Up-6s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 04:30:51 +0200 Original-Received: from localhost ([::1]:41914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8YKv-00008A-Mq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 22:30:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8YKB-00005I-BS for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 22:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8YKB-0004UJ-24 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 22:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8YKA-0001hz-Te for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 22:30: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 02:30: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.16569881806515 (code B ref 56305); Tue, 05 Jul 2022 02:30:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 5 Jul 2022 02:29:40 +0000 Original-Received: from localhost ([127.0.0.1]:48952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8YJo-0001h1-HE for submit@debbugs.gnu.org; Mon, 04 Jul 2022 22:29:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8YJm-0001gm-8w for 56305@debbugs.gnu.org; Mon, 04 Jul 2022 22:29:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8YJf-0004R4-Vn; Mon, 04 Jul 2022 22:29:32 -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=QkH3Nd8BABBWf3yCJ4sidoPV1pZg+p2Md6KG6kULzcM=; b=m1K2/GP9X6SK A1ACzyo1nlwquuoi0nFPO4+niy+ZZziHt9ty78yeIDksuHSIAMiPRJS7p+fecmbtdLsR/LhlTCxCX Ov5ahrqzPtUqsxxpZ7DuQZs2qxXvfIQSkE7m5WigEIY07a7QPBcK4tTYo5WGw6pjkm3IHPSKfrUfV cJpM32UV/Me1PPFrkzxqJmnT73REEa3ZGoPBExXebH1jjyhpmvTweccsN8t2EnY1GZiB+8ROCiYqY eDg2GR5sV+QWQLrjINPge7J+yS8ZCPZFw4vuOKVovfLlhcWo4sxMIAm40rjWQbkEEa7Z2uhygZ7Nn /Bh/T9lxcC0QXYp86i+37Q==; Original-Received: from [87.69.77.57] (port=2204 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 1o8YJf-000737-2E; Mon, 04 Jul 2022 22:29:31 -0400 In-Reply-To: (message from Alan Mackenzie on Mon, 4 Jul 2022 19:43:51 +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:236083 Archived-At: > Date: Mon, 4 Jul 2022 19:43:51 +0000 > Cc: rudalics@gmx.at, monnier@iro.umontreal.ca, 56305@debbugs.gnu.org > From: Alan Mackenzie > > > > Quick summary of the problem: On an Emacs with a minibuffer-only frame > > > (MBF) and a minibuffer-less frame (NF), with MBF selected with focus, > > > type C-x C-c. Instead of the focus remaining in MBF, it's moved to NF. > > > I lost you right here: can you explain why what you described isn't > > TRT? > > 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. > > I mean, after you typed "C-x C-c", the minibuffer (whether it's a > > frame or a window) has completed its job, and focus should return to > > the "real" frame, which is NF. Right? What am I missing here? > > After the C-x C-c, and the appearence of the prompt, NF has the focus, > uselessly, instead of MBF. How is Emacs supposed to know that the user wants only to _look_ at the list of processes in this case? In general, moving focus to where the information is sounds right to me. > That means having to do a window-manager > action to get at the prompt. This is the bug that Martin registered. In the scenario you described, I'm not sure it's a bug. In general, when Emacs prompts with a question in the minibuffer frame and displays some information pertaining to the question in another frame, it is not completely clear where should the focus be. E.g., suppose that the list of processes was so long that it wouldn't fit in one window-full, and you'd need to scroll it to see all of it -- wouldn't you want then to have the focus in the frame with the process list?