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: Mon, 11 Jul 2022 20:09:15 +0000 Message-ID: References: <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> <83fsj7zjkw.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="21582"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, Eli Zaretskii , 56305@debbugs.gnu.org, acm@muc.de To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 22:10:11 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 1oAzjP-0005TD-8Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 22:10:11 +0200 Original-Received: from localhost ([::1]:35184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAzjN-0006K3-SF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 16:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAzjH-0006JN-1C for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAzjG-0003oS-Oi for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAzjG-0001HE-Ef for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2022 20:10: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.16575701674854 (code B ref 56305); Mon, 11 Jul 2022 20:10:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 11 Jul 2022 20:09:27 +0000 Original-Received: from localhost ([127.0.0.1]:41071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAzie-0001GB-1h for submit@debbugs.gnu.org; Mon, 11 Jul 2022 16:09:27 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:12006 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oAzic-0001Fy-6H for 56305@debbugs.gnu.org; Mon, 11 Jul 2022 16:09:22 -0400 Original-Received: (qmail 53491 invoked by uid 3782); 11 Jul 2022 20:09:15 -0000 Original-Received: from acm.muc.de (p4fe15cf0.dip0.t-ipconnect.de [79.225.92.240]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 11 Jul 2022 22:09:15 +0200 Original-Received: (qmail 10149 invoked by uid 1000); 11 Jul 2022 20:09:15 -0000 Content-Disposition: inline In-Reply-To: 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:236716 Archived-At: Hello, Stefan. On Mon, Jul 11, 2022 at 13:34:55 -0400, Stefan Monnier wrote: > > Perhaps that "sometimes" could be expanded upon. How is the Lisp hacker > > supposed to know when she's got to raise or focus the frame in addition > > to selecting a window? > I think we need to distinguish the WM-level notion of focus from an > "Emacs-internal" notion of focus. > >From that point of view, WM-focus and raising should be changed (from > ELisp) only in fairly rare circumstances. Like C-x 5 o, you mean? ;-) > > OK, so maybe we could agree that select-window ought to move focus onto > > the target frame, Or, on the other hand, maybe not. > Hmm... maybe in some cases, but probably not when Emacs doesn't have focus. > > but not raise it (modulo fascistic window managers). > Indeed. > > My larger point is that all these functionalities, focussing, raising, > > selecting, "highlighting", whatever, seem to be mixed together in the > > code. If we could separate them into coherent functions, we would have > > fewer bugs like the current one in the future. > In theory we do separate them, with things like > select-frame-set-input-focus/x-focus-frame/raise-frame on one side and > select-frame/window on the other. I'm talking more about the practice than the theory. This bug happened when a select-frame grabbed the focus for the wrong frame. select-frame isn't meant to do that. > Stefan -- Alan Mackenzie (Nuremberg, Germany).