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:01:52 +0000 Message-ID: References: <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> 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="21678"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , 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:02:18 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 1oAzbm-0005SW-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 22:02:18 +0200 Original-Received: from localhost ([::1]:57984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAzbk-00024Y-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 16:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAzbW-00022Y-8P for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAzbV-0002d2-V5 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAzbV-00015E-Pg for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 16:02: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: Mon, 11 Jul 2022 20:02: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.16575697204157 (code B ref 56305); Mon, 11 Jul 2022 20:02:01 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 11 Jul 2022 20:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:41064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAzbU-00014z-9v for submit@debbugs.gnu.org; Mon, 11 Jul 2022 16:02:00 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:11810 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oAzbS-00014n-Sw for 56305@debbugs.gnu.org; Mon, 11 Jul 2022 16:01:59 -0400 Original-Received: (qmail 46477 invoked by uid 3782); 11 Jul 2022 20:01:52 -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:01:52 +0200 Original-Received: (qmail 10121 invoked by uid 1000); 11 Jul 2022 20:01:52 -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:236715 Archived-At: Hello, Stefan. On Mon, Jul 11, 2022 at 13:06:40 -0400, Stefan Monnier wrote: > > Apologies: the doc string for select-window virtually says it grabs the > > focus. Couldn't we go the whole way, and explicitly state that > > select-window is really "select-window-set-input-focus"? > This sounds problematic at the very least for cases like > `with-selected-window` and `save-window-excursion`, where we don't > really want the code to "set and (un/re)set" the focus. And similarly > when code does `select-window` while Emacs doesn't have focus at all. Actually, at the moment I don't believe that select-window does grab the focus. I've been a bit confused about this over the last day or so. > We do have a kind of messy situation w.r.t distinguishing the notion of > selected-frame (and selected-window to some extend) from its interaction > with window-manager focus. But I'm not sure we can (nor should) really > unify the two. No. But if we did, it would be via an extra argument `no-focus' to select-window. I still say no. > Stefan -- Alan Mackenzie (Nuremberg, Germany).