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: Thu, 21 Jul 2022 11:07:20 -0400 Message-ID: References: <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> <171bab25-5eb2-884b-5c32-bcfe4fed21cc@gmx.at> <11e7e566-f626-fcf4-adfc-d03efa0d861c@gmx.at> <834jzepg3t.fsf@gnu.org> <83zgh6nz5c.fsf@gnu.org> <83y1wokmfr.fsf@gnu.org> <83o7xjlqlz.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="16355"; 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, 56305@debbugs.gnu.org, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 17:08:34 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 1oEXmy-00047A-W0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 17:08:33 +0200 Original-Received: from localhost ([::1]:47964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEXmw-0004Vm-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 11:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEXmU-0004Sx-8e for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEXmT-0006zJ-PC for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEXmT-0005gp-Kg for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2022 15:08: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.165841605521831 (code B ref 56305); Thu, 21 Jul 2022 15:08:01 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 21 Jul 2022 15:07:35 +0000 Original-Received: from localhost ([127.0.0.1]:38616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEXm3-0005g3-Ec for submit@debbugs.gnu.org; Thu, 21 Jul 2022 11:07:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEXly-0005fn-W4 for 56305@debbugs.gnu.org; Thu, 21 Jul 2022 11:07:35 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8E23C440C33; Thu, 21 Jul 2022 11:07:25 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5392E440ADD; Thu, 21 Jul 2022 11:07:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658416044; bh=GGdINHf5ZjYz5GHeYS0b18mKWzUczEO/7gEFgnhVvB8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=A2ThElWEvcTWxdmSx8sFUgeGFhXBHVAAr9FzmVDbSHOj0FEMOuSI8JfYkv8mK/7e5 D0Acn0oQrHU82jH6yZRXnRAg/FApr2zU64FCMHNeR0jkSei6AgDEAeW7Sq/IOSNfiI rVxa2VFtls/a8oUDVbItqOiXteTGwUhYOXqVF8pmPyuwtwf6ONv+abpQDmzNFNPXmk M1NVMWIEc4wis2iZU9/kEB/667nvN0rBfiZtG6xOrx+++0uBnj6zouznM7N9WCb3yu zsYehlZt8iKatxvnlWrFaWraKPMt0DUQUpJ3Zk/YDMHzHIREQa/YSn1oy05OwBnak6 9rx353lyUF3GQ== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 239FD12030B; Thu, 21 Jul 2022 11:07:24 -0400 (EDT) In-Reply-To: <83o7xjlqlz.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Jul 2022 19:02:16 +0300") 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:237557 Archived-At: >> > And second, why cannot/shouldn't it bind inhibit-redisplay? >> Because code within a `save-selected-window` may want to use `sit-for`, >> `read-event`, `recursive-edit`, `read-from-minibuffer`, .. > You assume the binding should be in effect while BODY runs. But > that's not needed: you only need to do that around the call to > select-window (if at all). Ah, that's better, indeed. I'd rather make `select-window` take an explicit arg (or a special value of `norecord`) rather than pass that arg implicitly via a dynbound variable (especially one like `inhibit-redisplay` whose name doesn't say clearly what it has to do with `select-window`). Stefan