From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame Date: Wed, 20 Jul 2022 19:02:16 +0300 Message-ID: <83o7xjlqlz.fsf@gnu.org> References: <5d86d890-9a2e-e4d6-13fb-da03285ea003@gmx.at> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17344"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, 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 Wed Jul 20 18:09:13 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 1oECG9-0004Kp-21 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 18:09:13 +0200 Original-Received: from localhost ([::1]:55988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oECG7-00084O-Ty for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 12:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECAA-0001r7-Fm for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oECAA-0003bm-6c for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oECA9-00084A-UH for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2022 16:03: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.165833295830974 (code B ref 56305); Wed, 20 Jul 2022 16:03:01 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 20 Jul 2022 16:02:38 +0000 Original-Received: from localhost ([127.0.0.1]:58705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEC9m-00083W-GQ for submit@debbugs.gnu.org; Wed, 20 Jul 2022 12:02:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEC9h-00083F-5R for 56305@debbugs.gnu.org; Wed, 20 Jul 2022 12:02:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEC9a-0003aL-27; Wed, 20 Jul 2022 12:02:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5qkccxfKwtW46ZnYnIhcsB3YbfpBb6+KuoauGzb4EhE=; b=O4AwRLFxVQdF UqVdhsoutECp4vvYtYqVCYdmJyCBKiXUibfELj3sMsV8bUPsUvce1yNairS3skro1hnJtYwd9HwWG toQgqywpUYDLgJTysrSuIZRpWw5kswJfkpa6+t6Fs7meSMw8RracAHVNFAb7ivb20vw2+nBc7BJfV ID4MOuopFp8+RrThfapLV9ryDTZeNa4cMYdb8OqMySJFab2G4xy5YG55T2xW18nFyDSe+lnTI/viI FuCATeZlSwTtSBCbbp4jEp7t5NYjQl4Q2U/6IsU65TUK2Qye7Lo5yKwgKTYH0lfVIOebP+ofNd/BN kMRO1K3JKbJlprKRMJZzlQ==; Original-Received: from [87.69.77.57] (port=1721 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEC9Z-00075R-Hu; Wed, 20 Jul 2022 12:02:25 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 20 Jul 2022 10:54:46 -0400) 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:237512 Archived-At: > From: Stefan Monnier > Cc: rudalics@gmx.at, acm@muc.de, 56305@debbugs.gnu.org > Date: Wed, 20 Jul 2022 10:54:46 -0400 > > >> But `save-selected-window` can't&shouldn't bind `inhibit-redisplay`. > > I don't think I understand. First, how is save-selected-window > > related to this discussion? > > `save-selected-window` uses `select-window`. That select-window will do nothing unless BODY changes the selected window, right? So it isn't save-selected-window's business to do anything about the issue at hand: it's the business of that BODY. > [ Actually I meant to write `with-selected-window` which is even more > directly related, but the same hold for `save-selected-window`. ] What is the problem with with-selected-window, exactly? > > 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).