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#61538: Iconifying a frame changes its title Date: Wed, 15 Feb 2023 21:51:38 +0200 Message-ID: <83a61eaer9.fsf@gnu.org> References: <87h6vmpvpw.fsf@bernoul.li> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27407"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61538@debbugs.gnu.org To: Jonas Bernoulli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 20:53:18 2023 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 1pSNq9-0006tq-Q9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 20:53:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNq0-0003TV-AY; Wed, 15 Feb 2023 14:53:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSNpu-0003QH-GL for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSNpu-0006E2-81 for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSNpu-0002wR-0x for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2023 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61538 X-GNU-PR-Package: emacs Original-Received: via spool by 61538-submit@debbugs.gnu.org id=B61538.167649072811239 (code B ref 61538); Wed, 15 Feb 2023 19:53:01 +0000 Original-Received: (at 61538) by debbugs.gnu.org; 15 Feb 2023 19:52:08 +0000 Original-Received: from localhost ([127.0.0.1]:34116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSNp1-0002vD-Mg for submit@debbugs.gnu.org; Wed, 15 Feb 2023 14:52:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSNow-0002uc-Gn for 61538@debbugs.gnu.org; Wed, 15 Feb 2023 14:52:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSNoq-00066W-Cn; Wed, 15 Feb 2023 14:51:56 -0500 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=B4LuzHL6+kqTysWp3w++KU3cKzrd83G/xjvicdVqb30=; b=it5No+eOYvOu gyQ20p2B8CnXFFWntflgsff/+oYJ/ovp94JlvgdxTwckKyiVQh7w7W5FEItwwg/IZ3UjHHRh66q3e krh/hIcpPjgXTUWKTkQFj4I3KquIMoIHrTvbQ3y9QjsSZ9IfEPGkCAnrMQVH4sKgjTd3QVnqXNeVE rgBem6feAkSqQSdsRwUPwn1UIAEBh00whqZV4JOLnsjVvAcPjpZCDimxyvKFOiDffrf+wisQSeE4G naeGxwRYv7MYZMghZaGvxuyOXWVVcg6rCmVpRt2rRxpbSAboxZ/zgdke3KgVg8OJmO9TOluERA107 xKlZNJD7iFhRbz27lS1RGQ==; Original-Received: from [87.69.77.57] (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 1pSNop-0000Ov-Sp; Wed, 15 Feb 2023 14:51:56 -0500 In-Reply-To: <87h6vmpvpw.fsf@bernoul.li> (message from Jonas Bernoulli on Wed, 15 Feb 2023 20:36:11 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255773 Archived-At: > From: Jonas Bernoulli > Date: Wed, 15 Feb 2023 20:36:11 +0100 > > Hello, > > For the longest time I used "%b" as frame-title-format. Now that I have > changed it to something more complex, I noticed that it is not respected > for iconified frames. > > (mapcar (lambda (f) (list (frame-visible-p f) (frame-parameter f 'name) f)) > (frame-list)) > > ((t "/home/jonas/.config/emacs/custom.el" > #) > (icon "init.el" #)) > > You might be wondering how I even noticed this. > > I use a tiling window manager, i3wm. Usually I arrange windows in > multiple columns, where each column "holds" multiple windows, but > displays only one of them at a time. At the top of such a column the > titles of all the window that it holds is displayed, followed by the one > window that is actually being displayed. So while the other windows are > not displayed, their title is still displayed. i3wm iconifies the > windows that are not being displayed. > > Unfortunately that means that Emacs changes the visible titles of the > iconified frames. So, given "%f" as frame-title-format, I see, e.g.: > > [init.el ] # title of an iconified window > [/home/jonas/.config/emacs/custom.el ] # title of the displayed window > |(custom-set-variables | # the column's displayed window > | ...) | > > instead of > > [/home/jonas/.config/emacs/init.el ] > [/home/jonas/.config/emacs/custom.el ] > |(custom-set-variables | > | ...) | > > Is there a knob, that I am not aware of, to control this? > If not, please consider adding one. Isn't this a duplicate of bug#61496, especially the last part of its discussion?