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" Newsgroups: gmane.emacs.bugs Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame Date: Mon, 11 Jul 2022 13:34:55 -0400 Message-ID: References: <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> <83fsj7zjkw.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19561"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: rudalics@gmx.at, Eli Zaretskii , 56305@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 19:36:46 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 1oAxKv-0004tE-8S for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 19:36:45 +0200 Original-Received: from localhost ([::1]:58868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAxKt-00044p-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 13:36:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAxKF-00043J-Kg for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAxKE-00016b-PL for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAxKE-0001J7-Hs for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2022 17:36: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.16575609054941 (code B ref 56305); Mon, 11 Jul 2022 17:36:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 11 Jul 2022 17:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:40930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAxJI-0001Hd-Uc for submit@debbugs.gnu.org; Mon, 11 Jul 2022 13:35:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAxJH-0001Gv-G6 for 56305@debbugs.gnu.org; Mon, 11 Jul 2022 13:35:03 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 72824100173; Mon, 11 Jul 2022 13:34:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 154D110012B; Mon, 11 Jul 2022 13:34:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1657560896; bh=XufJXAzDYAPLsubaXyraQ+r5Vh5KmrkWlktUTHkPCOo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Ht6yKFZAbT9BwTT0YSDwaECBOZu8j9zcAS3mL7fb6Kj9DQKk1BbURQ+3YO7AxmVpu hJu4Nx4qRw3wTBC/0nXD4if4rmqn5YjHZFggiwZCpb1WOxVGJo817RnpnAEl64Hi/x nn70RhbikU8P0CWfIeFPTGPMlU9ksv5tMqkpffnD+QzxQfYvOCs8Qgd+9T/1x9vgjg /Xb1bUlF3C4CFfa6TYE0vpq5N4ARl6yeObeA1gqwJWdLkAa78+aRo5QIPWRH9yVAKQ 4RS/PtWm4kBKG8ky54AVw/VWbJZAQvUFD3Mhpj07EXpdJR1k/IO4deA37eCry5N3gr fqAnN9nzQo5gQ== Original-Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D3E0D12022C; Mon, 11 Jul 2022 13:34:55 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Mon, 11 Jul 2022 17:15:08 +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:236711 Archived-At: > 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. > OK, so maybe we could agree that select-window ought to move focus onto > the target frame, 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. Stefan