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 15:17:44 +0300 Message-ID: <83y1wokmfr.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13397"; 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 14:18:24 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 1oE8em-0003K4-5Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 14:18:24 +0200 Original-Received: from localhost ([::1]:54148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8el-0008NS-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 08:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE8eR-0008GO-8r for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE8eQ-0003WY-VH for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE8eQ-0007SK-RB for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:18:02 -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 12:18: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.165831948128636 (code B ref 56305); Wed, 20 Jul 2022 12:18:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 20 Jul 2022 12:18:01 +0000 Original-Received: from localhost ([127.0.0.1]:56171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE8eO-0007Rj-Sk for submit@debbugs.gnu.org; Wed, 20 Jul 2022 08:18:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE8eN-0007RW-Jb for 56305@debbugs.gnu.org; Wed, 20 Jul 2022 08:18:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE8eH-0003V6-LC; Wed, 20 Jul 2022 08:17:53 -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=zVKRuFJHUeGS3Z8prDD0kFa8EPO6AZtvUgIaE+JJB/s=; b=Oodg5gbwbKYp Er5uttV9gAtXGd1K8iV9tywllTn6a4B2ZV5b5t6aOyDJsnvEnr0gNHuMUfeKFE71vqaYaYXS8SPDY 6Ug7vUl4qxLK7JRXaDqrcHbW1gNlbPE6FHf8erudLiVoMwTGnp0GriJwg94E7GORRMv+jvrsdtbow IbxvpaVIv79S/2fb/m+dSwHIvKwfG3+UWpEQgdvUhTjFGN/+BZAFjWScEIdDDg+kdHnCJrXVU2jV3 bh/IkIWpQmI+aM8Nhh5J8fmr+KrgNlGNCnJPsew1LBc28V+VB1EllJpcXU6ZtLirCgM8RBrT0vEqw YAJvP6p/atu43balhiDsrg==; Original-Received: from [87.69.77.57] (port=3477 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 1oE8eH-00046R-4l; Wed, 20 Jul 2022 08:17:53 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 19 Jul 2022 16:48:44 -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:237498 Archived-At: > From: Stefan Monnier > Cc: rudalics@gmx.at, acm@muc.de, 56305@debbugs.gnu.org > Date: Tue, 19 Jul 2022 16:48:44 -0400 > > >> >> Hmm... following the idea above, maybe select-frame/window should never > >> >> call resize_mini_window, and instead that should only take place at the > >> >> next redisplay. > >> > > >> > That's exactly what happens: resize_mini_window just fiddles with some > >> > variables, the actual resizing happens as part of redisplay. It's the > >> > moral equivalent of what happens when the user types "C-x ^". > >> > >> But we need to make sure that selecting a window and then "selecting > >> back" the original doesn't cause those vars to be changed. > > > > That shouldn't be hard to arrange (in fact, binding inhibit-redisplay > > does precisely that). > > 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? And second, why cannot/shouldn't it bind inhibit-redisplay?