From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#61538: Iconifying a frame changes its title Date: Wed, 15 Feb 2023 20:36:11 +0100 Message-ID: <87h6vmpvpw.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36487"; mail-complaints-to="usenet@ciao.gmane.io" To: 61538@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 20:47:24 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 1pSNkR-0009F6-RG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 20:47:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNk9-0007HZ-F1; Wed, 15 Feb 2023 14:47:05 -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 1pSNk7-0007HN-9l for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:47: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 1pSNk6-00058l-Nw for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:47:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSNk6-0002hR-Je for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2023 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61538 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167649038610331 (code B ref -1); Wed, 15 Feb 2023 19:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2023 19:46:26 +0000 Original-Received: from localhost ([127.0.0.1]:34088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSNjV-0002gZ-QY for submit@debbugs.gnu.org; Wed, 15 Feb 2023 14:46:26 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSNjT-0002gQ-Ex for submit@debbugs.gnu.org; Wed, 15 Feb 2023 14:46:24 -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 1pSNjS-0006pr-Hm for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:46:22 -0500 Original-Received: from mail.hostpark.net ([212.243.197.30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSNjO-0004oR-FL for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 14:46:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 8CCF1164BF for ; Wed, 15 Feb 2023 20:36:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received; s=sel2011a; t= 1676489772; bh=xj0mQYGDDD/ivNsjrFttcGs6gZNhdlsnnmAlySBQFRQ=; b=e YuU5rimY6EfiYH3WDD2ZB3V2tNOlT29eCOTlWa2ASwkT6058LEQtaKCmlnuLlKta fOI3adG8s6kOrKnY+fbOoKzuXNkGCnYe1QIaftvqCI1g+6n1nDm2zSyM0DdRpgaB XFQWcKiHOWXtqi+QRiapJ3jFKl4jw7w1W28lD3DZYY= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id UQb0fxb3FBAF for ; Wed, 15 Feb 2023 20:36:12 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 4B558164B2 for ; Wed, 15 Feb 2023 20:36:12 +0100 (CET) Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:255771 Archived-At: 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. Thanks! Jonas