unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61538: Iconifying a frame changes its title
@ 2023-02-15 19:36 Jonas Bernoulli
  2023-02-15 19:51 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Bernoulli @ 2023-02-15 19:36 UTC (permalink / raw)
  To: 61538

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#61538: Iconifying a frame changes its title
  2023-02-15 19:36 bug#61538: Iconifying a frame changes its title Jonas Bernoulli
@ 2023-02-15 19:51 ` Eli Zaretskii
  2023-02-15 22:20   ` Jonas Bernoulli
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-02-15 19:51 UTC (permalink / raw)
  To: Jonas Bernoulli; +Cc: 61538

> From: Jonas Bernoulli <jonas@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?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#61538: Iconifying a frame changes its title
  2023-02-15 19:51 ` Eli Zaretskii
@ 2023-02-15 22:20   ` Jonas Bernoulli
  2023-02-16  7:50     ` Eli Zaretskii
  2023-09-05 23:33     ` Stefan Kangas
  0 siblings, 2 replies; 6+ messages in thread
From: Jonas Bernoulli @ 2023-02-15 22:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 61538

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#61538: Iconifying a frame changes its title
  2023-02-15 22:20   ` Jonas Bernoulli
@ 2023-02-16  7:50     ` Eli Zaretskii
  2023-09-05 21:34       ` Stefan Kangas
  2023-09-05 23:33     ` Stefan Kangas
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-02-16  7:50 UTC (permalink / raw)
  To: Jonas Bernoulli; +Cc: 61538

> From: Jonas Bernoulli <jonas@bernoul.li>
> Cc: 61538@debbugs.gnu.org
> Date: Wed, 15 Feb 2023 23:20:52 +0100
> 
> Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#61538: Iconifying a frame changes its title
  2023-02-16  7:50     ` Eli Zaretskii
@ 2023-09-05 21:34       ` Stefan Kangas
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2023-09-05 21:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 61538-done, Jonas Bernoulli

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jonas Bernoulli <jonas@bernoul.li>
>> Cc: 61538@debbugs.gnu.org
>> Date: Wed, 15 Feb 2023 23:20:52 +0100
>>
>> Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#61538: Iconifying a frame changes its title
  2023-02-15 22:20   ` Jonas Bernoulli
  2023-02-16  7:50     ` Eli Zaretskii
@ 2023-09-05 23:33     ` Stefan Kangas
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2023-09-05 23:33 UTC (permalink / raw)
  To: Jonas Bernoulli; +Cc: Eli Zaretskii, 61538-done

Jonas Bernoulli <jonas@bernoul.li> writes:

> Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-05 23:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 19:36 bug#61538: Iconifying a frame changes its title Jonas Bernoulli
2023-02-15 19:51 ` Eli Zaretskii
2023-02-15 22:20   ` Jonas Bernoulli
2023-02-16  7:50     ` Eli Zaretskii
2023-09-05 21:34       ` Stefan Kangas
2023-09-05 23:33     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).