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#55412: 28.1; In Emacs 28.1, using ':eval' in 'frame-title-format' doesn't work properly Date: Wed, 18 May 2022 19:51:54 +0300 Message-ID: <83mtfeeqc5.fsf@gnu.org> References: <838rr4kq56.fsf@gnu.org> <87d23565-b8ba-3b08-0d10-068be3b0c5fd@gmx.at> <83leuzf4zk.fsf@gnu.org> <83sfp6eskr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5879"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55412@debbugs.gnu.org, rudalics@gmx.at, tanzer@swing.co.at To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 18:53:18 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 1nrMvF-0001Kp-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 18:53:18 +0200 Original-Received: from localhost ([::1]:36498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrMvF-0005tq-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 12:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrMv0-0005td-88 for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 12:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrMuz-0001CH-Vn for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 12:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrMuz-0004Ft-Uw for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 12:53: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, 18 May 2022 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55412 X-GNU-PR-Package: emacs Original-Received: via spool by 55412-submit@debbugs.gnu.org id=B55412.165289272916289 (code B ref 55412); Wed, 18 May 2022 16:53:01 +0000 Original-Received: (at 55412) by debbugs.gnu.org; 18 May 2022 16:52:09 +0000 Original-Received: from localhost ([127.0.0.1]:33371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrMu9-0004Ee-6Q for submit@debbugs.gnu.org; Wed, 18 May 2022 12:52:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrMu6-0004EI-Sh for 55412@debbugs.gnu.org; Wed, 18 May 2022 12:52:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrMtz-00018S-S7; Wed, 18 May 2022 12:51:59 -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=Y4HsHGon0vm67d26Vfi6roEWhOi+DmvDAhlz9VDIxeU=; b=NpIcH8XLX48h tl60a1gwlbaQCYQ5XAMxjLqLo5eCSnTW9skVWg3MiMoyVVpdh8Xk3e6hYiSK4PCcQt9SSC/DqOKCP vEm7h7N3eNcgsc3LEkH/w5Kq07ts1rDbItLMxUXBUkRAZs6BVS23LSvHVatL/1v3MmIq4mb8XrvIE OOpfKbpFZ07dnv6kvYnNn0Jd3fpwanrjDK1QfnpIkLp5k0NcEPfDufVBuNe8G/XfKFavmkOIFr4lH XrByTMh8LydeqkaAs3e1C1tLnMXzBfVbQU6KrfyXWaaxXFusVpsX+PuJMvv+AWKySPRx9W/osDPoY NkaC6rFAwsDpe1kQxVM3gA==; Original-Received: from [87.69.77.57] (port=3335 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 1nrMtz-0007FH-9r; Wed, 18 May 2022 12:51:59 -0400 In-Reply-To: (message from Alan Mackenzie on Wed, 18 May 2022 16:38:32 +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:232595 Archived-At: > Date: Wed, 18 May 2022 16:38:32 +0000 > Cc: rudalics@gmx.at, 55412@debbugs.gnu.org, tanzer@swing.co.at > From: Alan Mackenzie > > > Thanks, but shouldn't this somehow depend on the value of > > minibuffer-follows-selected-frame? > > I think it does. If minibuffer-follows-selected-frame is nil, when we > return to a frame on which a minibuffer has been opened, the minibuffer > will still be there, so there is no need to select a different window. > > If m-f-s-frame is t, and we have moved away from the frame on which a > minibuffer was opened, that minibuffer will have moved to the new frame. > It will either be terminated before we return to the original frame (in > which case we select a window different from the now invalid > mini-window), or the minibuffer returns to the original frame when we > switch back. > > The critical criterion is whether there's a valid minibuffer in the > mini-window of the frame we switch to. It doesn't really matter whether > that minibuffer has moved between frames, or was always there. So, > maybe this process is independent of minibuffer-follow-selected-frame. > But I think it works. It would be good to have some of these explanations in comments there.