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: Mon, 11 Jul 2022 14:12:39 +0300 Message-ID: <83wncjzyvs.fsf@gnu.org> References: <83zghm5evt.fsf@gnu.org> <5d86d890-9a2e-e4d6-13fb-da03285ea003@gmx.at> <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 56305@debbugs.gnu.org, monnier@iro.umontreal.ca To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 11 13:14:22 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 1oArMr-0009mB-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 13:14:22 +0200 Original-Received: from localhost ([::1]:57952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oArMq-00047P-PG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jul 2022 07:14:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oArMZ-00045Z-4w for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 07:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oArMY-0004qD-S8 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 07:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oArMY-0005wd-NC for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2022 07:14: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: Mon, 11 Jul 2022 11:14: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.165753798322746 (code B ref 56305); Mon, 11 Jul 2022 11:14:02 +0000 Original-Received: (at 56305) by debbugs.gnu.org; 11 Jul 2022 11:13:03 +0000 Original-Received: from localhost ([127.0.0.1]:38568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArLa-0005uo-Ly for submit@debbugs.gnu.org; Mon, 11 Jul 2022 07:13:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oArLX-0005u0-BT for 56305@debbugs.gnu.org; Mon, 11 Jul 2022 07:12:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oArLR-0004ir-CM; Mon, 11 Jul 2022 07:12: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=QF9zhP+OM0FdflRqTBZdyHxr6LBIQ50JO/JqCUsF8P4=; b=F5rFmWk1LnmD CQPu0yQITddeeRDH9EMSzxequVmLJWD0iuZXe5rT5vya8rHGBDuFALlp2e0i5IkgP/sDAV0fi+iB9 y+dhmycYKaygFy2BAtoLn86whfbTAnUE5ddThDCHyV0v2xYrWcBk97RxW3WAb2axjsX3dDMrsVEEL /CbXN70w9v2cCcjLK6s7alVy5vjr5KB8Ej2MWQ3feWUFkxlxPKYxBA3WxTZWQKmeGzVF2w2yDYFHz cN6K7ELSIVXh0X2C3GHCU3Ji+bsckoM0Z+uIge5UvIiuxToImximaEAUexzw2o2BBV9zr70ZJE2G8 O9z8/bgwNumJ7Ff4XBIGcA==; Original-Received: from [87.69.77.57] (port=2408 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 1oArLQ-0000U3-SU; Mon, 11 Jul 2022 07:12:53 -0400 In-Reply-To: <61fe102b-eec2-9711-560e-c141ed3cc6e4@gmx.at> (message from martin rudalics on Mon, 11 Jul 2022 09:45:59 +0200) 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:236649 Archived-At: > Date: Mon, 11 Jul 2022 09:45:59 +0200 > Cc: Eli Zaretskii , monnier@iro.umontreal.ca, > 56305@debbugs.gnu.org > From: martin rudalics > > > Anyway, we'll have to decide soon what to do for Emacs 28.2. The first > > pretest is already out there. What we do needs to be simple and safe. > > The alternatives so far seem to be do nothing, apply the 53-line > > deletion from master (which Eli has already rejected) or apply my patch > > above (fixed to work with tty's). At the moment, I would favour the > > last of these. > > For Emacs 28.2 I could imagine something like > > diff --git a/src/frame.c b/src/frame.c > index 0c278259a7..27442ee120 100644 > --- a/src/frame.c > +++ b/src/frame.c > @@ -1499,7 +1499,8 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor > #else /* ! 0 */ > /* Instead, apply it only to the frame we're pointing to. */ > #ifdef HAVE_WINDOW_SYSTEM > - if (track && FRAME_WINDOW_P (f) && FRAME_TERMINAL (f)->get_focus_frame) > + if (track && NILP (Vinhibit_redisplay) > + && FRAME_WINDOW_P (f) && FRAME_TERMINAL (f)->get_focus_frame) > { > Lisp_Object focus, gfocus; > > that is use the analogous unpleasant hack from resize_mini_window. Can you tell how inhibit-redisplay is related to the original recipe in this bug? Specifically, at what point is inhibit-redisplay set in that recipe and by which code? Thanks.