From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Stefan Monnier via "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame
Date: Mon, 11 Jul 2022 13:06:40 -0400
Message-ID: <jwvk08j60ut.fsf-monnier+emacs@gnu.org>
References: <YsXRYxGddhK9uMN1@ACM>
 <5d86d890-9a2e-e4d6-13fb-da03285ea003@gmx.at> <YsajbHnSgbScvguW@ACM>
 <c7a72562-1993-196e-d1a7-64ef70e4c775@gmx.at> <YsgNC6meyQ7XHAkp@ACM>
 <dbd87661-92fc-d961-e82a-574116ffa03d@gmx.at> <Ysle/8OJvZc3yOxf@ACM>
 <cc7ce72b-9c68-6301-1308-fb1ed7199c54@gmx.at> <Ysq5Wlk17NXvGcDJ@ACM>
 <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> <YsxOPcXyFPnCI0fo@ACM>
Reply-To: Stefan Monnier <monnier@iro.umontreal.ca>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="28159"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: martin rudalics <rudalics@gmx.at>, Eli Zaretskii <eliz@gnu.org>,
 56305@debbugs.gnu.org
To: Alan Mackenzie <acm@muc.de>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 19:07:43 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1oAwsp-00079O-3V
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 19:07:43 +0200
Original-Received: from localhost ([::1]:39498 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1oAwsn-0006Y7-OS
	for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 13:07:41 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42446)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1oAwsA-00062G-Op
 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:07:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:46985)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1oAwsA-00083f-Gu
 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:07:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oAwsA-0000VW-Bw
 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:07:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Stefan Monnier <monnier@iro.umontreal.ca>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 11 Jul 2022 17:07:02 +0000
Resent-Message-ID: <handler.56305.B56305.16575592111933@debbugs.gnu.org>
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.16575592111933
 (code B ref 56305); Mon, 11 Jul 2022 17:07:02 +0000
Original-Received: (at 56305) by debbugs.gnu.org; 11 Jul 2022 17:06:51 +0000
Original-Received: from localhost ([127.0.0.1]:40882 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1oAwrz-0000V7-0R
 for submit@debbugs.gnu.org; Mon, 11 Jul 2022 13:06:51 -0400
Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23825)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@iro.umontreal.ca>) id 1oAwrx-0000Ut-Eb
 for 56305@debbugs.gnu.org; Mon, 11 Jul 2022 13:06:49 -0400
Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CD466100173;
 Mon, 11 Jul 2022 13:06:43 -0400 (EDT)
Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 99D9110012B;
 Mon, 11 Jul 2022 13:06:42 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1657559202;
 bh=+PsLJrOH+tBRefqENOc94YTq+HMgjhOZBuEpTUlqmvM=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=KKiXbHAi6dIYg7/t5xUQnlBelToiCAj/F9Rlb9mHDHEa6KD+Oo1XExOxP5v8A7GBD
 m9Z782pGDxfvoGaMFvZzMptlDjwwepmO/HHwQlub8ixlY8PKUjTVl9ggA0VmnKQhzA
 zAt20hkEhF1/mihM60UYwWTgkTp+oUyJG+kXviX7REGc4IVY9iugPy9XYTgr24Pf/7
 aLZm+lKIuwv40Krf04c8esoFPJFlRcsfmb8tQ3HI1XZvkJ6Jfbg60tBezLB/erF4OQ
 UMbab6lzfpwjYkVb8GIkk/iQ5XaLlPuW+z0J6OkQsjhiL3L9tGSuGGpOqh+fNUryhe
 Cjs9zBB69ltIA==
Original-Received: from pastel (unknown [45.72.196.165])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 61B3E1202C1;
 Mon, 11 Jul 2022 13:06:42 -0400 (EDT)
In-Reply-To: <YsxOPcXyFPnCI0fo@ACM> (Alan Mackenzie's message of "Mon, 11 Jul
 2022 16:22:21 +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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:236703
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/236703>

> 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.

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.


        Stefan