GNU bug report logs - #61538
Iconifying a frame changes its title

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Wed, 15 Feb 2023 19:47:02 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61538 in the body.
You can then email your comments to 61538 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61538; Package emacs. (Wed, 15 Feb 2023 19:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonas Bernoulli <jonas <at> bernoul.li>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 15 Feb 2023 19:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: bug-gnu-emacs <at> gnu.org
Subject: Iconifying a frame changes its title
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"
      #<frame /home/jonas/.config/emacs/custom.el 0x7d386d8>)
   (icon "init.el" #<frame init.el 0x1a8e850>))

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61538; Package emacs. (Wed, 15 Feb 2023 19:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 61538 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: 61538 <at> debbugs.gnu.org
Subject: Re: bug#61538: Iconifying a frame changes its title
Date: Wed, 15 Feb 2023 21:51:38 +0200
> From: Jonas Bernoulli <jonas <at> bernoul.li>
> 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"
>       #<frame /home/jonas/.config/emacs/custom.el 0x7d386d8>)
>    (icon "init.el" #<frame init.el 0x1a8e850>))
> 
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61538; Package emacs. (Wed, 15 Feb 2023 22:21:02 GMT) Full text and rfc822 format available.

Message #11 received at 61538 <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 61538 <at> debbugs.gnu.org
Subject: Re: bug#61538: Iconifying a frame changes its title
Date: Wed, 15 Feb 2023 23:20:52 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 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?

I should have looked at the info manual and the bug tracker more closely
before opening this.  I actually saw `icon-title-format', but I jumped
to the conclusion that it had something to do with displaying an
application icon.

     Sorry for the noise!
     Jonas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61538; Package emacs. (Thu, 16 Feb 2023 07:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 61538 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: 61538 <at> debbugs.gnu.org
Subject: Re: bug#61538: Iconifying a frame changes its title
Date: Thu, 16 Feb 2023 09:50:27 +0200
> From: Jonas Bernoulli <jonas <at> bernoul.li>
> Cc: 61538 <at> debbugs.gnu.org
> Date: Wed, 15 Feb 2023 23:20:52 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> 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?
> 
> I should have looked at the info manual and the bug tracker more closely
> before opening this.  I actually saw `icon-title-format', but I jumped
> to the conclusion that it had something to do with displaying an
> application icon.
> 
>      Sorry for the noise!

No sweat.

Would you mind expressing your opinion about the proposals in
bug#61496, specifically:

  . setting icon-title-format to t would mean "use frame-title-format"
  . leaving the default as it is in Emacs 29, with t being opt-in

Would you consider the above a good solution for Emacs 29, or do you
think we must change the default to t?

Thanks.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Tue, 05 Sep 2023 21:35:02 GMT) Full text and rfc822 format available.

Notification sent to Jonas Bernoulli <jonas <at> bernoul.li>:
bug acknowledged by developer. (Tue, 05 Sep 2023 21:35:02 GMT) Full text and rfc822 format available.

Message #19 received at 61538-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 61538-done <at> debbugs.gnu.org, Jonas Bernoulli <jonas <at> bernoul.li>
Subject: Re: bug#61538: Iconifying a frame changes its title
Date: Tue, 5 Sep 2023 14:34:47 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Jonas Bernoulli <jonas <at> bernoul.li>
>> Cc: 61538 <at> debbugs.gnu.org
>> Date: Wed, 15 Feb 2023 23:20:52 +0100
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> 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?
>>
>> I should have looked at the info manual and the bug tracker more closely
>> before opening this.  I actually saw `icon-title-format', but I jumped
>> to the conclusion that it had something to do with displaying an
>> application icon.
>>
>>      Sorry for the noise!
>
> No sweat.
>
> Would you mind expressing your opinion about the proposals in
> bug#61496, specifically:
>
>   . setting icon-title-format to t would mean "use frame-title-format"
>   . leaving the default as it is in Emacs 29, with t being opt-in
>
> Would you consider the above a good solution for Emacs 29, or do you
> think we must change the default to t?
>
> Thanks.

It seems like this was resolved, so I'm closing this bug.  Please speak
up if this conclusion is wrong, and we can reopen the bug report.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61538; Package emacs. (Tue, 05 Sep 2023 23:34:02 GMT) Full text and rfc822 format available.

Message #22 received at 61538-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61538-done <at> debbugs.gnu.org
Subject: Re: bug#61538: Iconifying a frame changes its title
Date: Tue, 5 Sep 2023 16:33:51 -0700
Jonas Bernoulli <jonas <at> bernoul.li> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> 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?
>
> I should have looked at the info manual and the bug tracker more closely
> before opening this.  I actually saw `icon-title-format', but I jumped
> to the conclusion that it had something to do with displaying an
> application icon.
>
>      Sorry for the noise!
>      Jonas

So I guess this should be closed, and I'm doing that now.

Please reopen if that's not the right conclusion.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 Oct 2023 11:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.