GNU bug report logs - #55850
Feature request: customizabe icon-title-format

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 8 Jun 2022 16:54:01 UTC

Severity: wishlist

Tags: moreinfo

Done: Po Lu <luangruo <at> yahoo.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 55850 in the body.
You can then email your comments to 55850 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#55850; Package emacs. (Wed, 08 Jun 2022 16:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 Jun 2022 16:54:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Feature request: customizabe icon-title-format
Date: Wed, 8 Jun 2022 18:53:13 +0200
[Message part 1 (text/plain, inline)]
Hi,

currently, icon-title-format is a variable defined in ‘C source code’.

As it's displayed at the top, it would be helpful, if it could display 
the version, for example.

What about making it customizable?

Thanks,
Andreas
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Wed, 08 Jun 2022 17:19:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Wed, 08 Jun 2022 20:18:22 +0300
> Date: Wed, 8 Jun 2022 18:53:13 +0200
> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
> 
> currently, icon-title-format is a variable defined in ‘C source code’.
> 
> As it's displayed at the top, it would be helpful, if it could display the version, for example.
> 
> What about making it customizable?

What do you mean?  Can't you customize it now?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Wed, 08 Jun 2022 19:02:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Wed, 8 Jun 2022 21:01:16 +0200
[Message part 1 (text/plain, inline)]
Am 08.06.22 um 19:18 schrieb Eli Zaretskii:
>> Date: Wed, 8 Jun 2022 18:53:13 +0200
>> From: Andreas Röhler<andreas.roehler <at> easy-emacs.de>
>>
>> currently, icon-title-format is a variable defined in ‘C source code’.
>>
>> As it's displayed at the top, it would be helpful, if it could display the version, for example.
>>
>> What about making it customizable?
> What do you mean?  Can't you customize it now?


Don't see how. Tried

(setq icon-title-format '(multiple-frames "%b" ("" invocation-name "@" 
emacs-version)))

with no effect.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 01:48:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 09:46:42 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Don't see how. Tried
>
> (setq icon-title-format '(multiple-frames "%b" ("" invocation-name "@" emacs-version)))
>
> with no effect. 

What window manager are you using, and which toolkit (if any) did you
build Emacs with?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 06:34:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 08:32:53 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 03:46 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> Don't see how. Tried
>>
>> (setq icon-title-format '(multiple-frames "%b" ("" invocation-name "@" emacs-version)))
>>
>> with no effect.
> What window manager are you using, and which toolkit (if any) did you
> build Emacs with?


GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, 
cairo version 1.16.0) of 2022-06-04

Window manager is xfce distributed by Xubuntu.

Assume LightDM GTK+


from env:

XDG_SESSION_DESKTOP=xubuntu
QT_QPA_PLATFORMTHEME=gtk2
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=XFCE


from config.log:

C_SWITCH_X_SITE=' -pthread -isystem /usr/include/gtk-2.0 -isystem 
/usr/lib/x86_64-linux-gnu/gtk-2.0/include -isystem 
/usr/include/pango-1.0 -isystem /usr/include/atk-1.0 -isystem 
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libmount -isystem 
/usr/include/blkid -isystem /usr/include/pango-1.0 -isystem 
/usr/include/fribidi -isystem /usr/include/cairo -isystem 
/usr/include/pixman-1 -isystem /usr/include/harfbuzz -isystem 
/usr/include/uuid -isystem /usr/include/freetype2 -isystem 
/usr/include/libpng16 -isystem /usr/include/glib-2.0 -isystem 
/usr/lib/x86_64-linux-gnu/glib-2.0/include'


GTK_CFLAGS='-pthread -isystem /usr/include/gtk-2.0 -isystem 
/usr/lib/x86_64-linux-gnu/gtk-2.0/include -isystem 
/usr/include/pango-1.0 -isystem /usr/include/atk-1.0 -isystem 
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libmount -isystem 
/usr/include/blkid -isystem /usr/include/pango-1.0 -isystem 
/usr/include/fribidi -isystem /usr/include/cairo -isystem 
/usr/include/pixman-1 -isystem /usr/include/harfbuzz -isystem 
/usr/include/uuid -isystem /usr/include/freetype2 -isystem 
/usr/include/libpng16 -isystem /usr/include/glib-2.0 -isystem 
/usr/lib/x86_64-linux-gnu/glib-2.0/include'


GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo 
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 
-lharfbuzz -lfontconfig -lfreetype -lglib-2.0'

TOOLKIT_LIBW='-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 
-lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 
-lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -lglib-2.0'


[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 07:00:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 14:59:05 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Window manager is xfce distributed by Xubuntu.
>
> Assume LightDM GTK+

And what do you expect to happen when that variable is set?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 07:56:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 09:55:44 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 08:59 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> Window manager is xfce distributed by Xubuntu.
>>
>> Assume LightDM GTK+
> And what do you expect to happen when that variable is set?


BTW emacs-version is displayed instead of host-name after calling 
`dired-other-frame' - just not at the initial one.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 08:08:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 16:07:12 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> BTW emacs-version is displayed instead of host-name after calling
> `dired-other-frame' - just not at the initial one.

I don't understand what you're trying to say.  Why are emacs-version and
dired-other-frame relevant?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 11:08:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 13:07:33 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 10:07 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> BTW emacs-version is displayed instead of host-name after calling
>> `dired-other-frame' - just not at the initial one.
> I don't understand what you're trying to say.  Why are emacs-version and
> dired-other-frame relevant?


emacs-version is the info, which I want to see at top.


dired-other-frame was just an example of a command, which displayed it 
according to my setting. Commonly, the host-name is shown at this place.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 11:35:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 19:34:22 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> emacs-version is the info, which I want to see at top.
>
> dired-other-frame was just an example of a command, which displayed it
> according to my setting. Commonly, the host-name is shown at this
> place.

What "top" are you referring to? Is it the title bar of an iconified
window?  (I don't believe XFCE has such a thing)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 11:42:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 13:41:25 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 13:34 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> emacs-version is the info, which I want to see at top.
>>
>> dired-other-frame was just an example of a command, which displayed it
>> according to my setting. Commonly, the host-name is shown at this
>> place.
> What "top" are you referring to? Is it the title bar of an iconified
> window?  (I don't believe XFCE has such a thing)


It's about the display of icon-title-format's content. Which is shown on 
top of Emacs as emacs <at> foo for example. Where foo is the hostname here.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 13:25:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 15:24:36 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Don't see how. Tried
>
> (setq icon-title-format '(multiple-frames "%b" ("" invocation-name "@"
> emacs-version)))
>
> with no effect. 

What window manager do you use?  Most of them (in my experience) just
ignore whatever the application specifies here and decides on an icon
name themselves.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 13:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 13:26:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 21:24:47 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> It's about the display of icon-title-format's content. Which is shown
> on top of Emacs as emacs <at> foo for example. Where foo is the hostname
> here.

`icon-title-format' is only displayed when the frame is iconified.  Is
your frame iconified?  And was any title explicitly specified for that
frame?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 13:44:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 15:43:43 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 15:24 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> It's about the display of icon-title-format's content. Which is shown
>> on top of Emacs as emacs <at> foo for example. Where foo is the hostname
>> here.
> `icon-title-format' is only displayed when the frame is iconified.  Is
> your frame iconified?  And was any title explicitly specified for that
> frame?


I'll attach a screenhot when starting from emacs -Q, just printing the 
emacs-version in the scratch buffer.

Please see at the center top displayed "*scratch* - GNU Emacs at affe"

The latest word is taken from the hostname. Want to replace this by the 
Emacs versions number.
[Message part 2 (text/html, inline)]
[affe.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 13:50:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 09 Jun 2022 21:49:40 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Please see at the center top displayed "*scratch* - GNU Emacs at affe"
>
> The latest word is taken from the hostname. Want to replace this by
> the Emacs versions number.

You want `frame-title-format', not `icon-title-format'.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55850; Package emacs. (Thu, 09 Jun 2022 14:15:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850 <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Thu, 9 Jun 2022 16:14:08 +0200
[Message part 1 (text/plain, inline)]
Am 09.06.22 um 15:49 schrieb Po Lu:
> Andreas Röhler<andreas.roehler <at> easy-emacs.de>  writes:
>
>> Please see at the center top displayed "*scratch* - GNU Emacs at affe"
>>
>> The latest word is taken from the hostname. Want to replace this by
>> the Emacs versions number.
> You want `frame-title-format', not `icon-title-format'.


Ah, okay, sorry. And that works nicely:

(set 'frame-title-format '(multiple-frames "%b" ("" invocation-name "@" 
emacs-version)))

[Message part 2 (text/html, inline)]

Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Fri, 10 Jun 2022 00:48:01 GMT) Full text and rfc822 format available.

Notification sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
bug acknowledged by developer. (Fri, 10 Jun 2022 00:48:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 55850-done <at> debbugs.gnu.org
Subject: Re: bug#55850: Feature request: customizabe icon-title-format
Date: Fri, 10 Jun 2022 08:47:10 +0800
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Ah, okay, sorry. And that works nicely:
>
> (set 'frame-title-format '(multiple-frames "%b" ("" invocation-name "@" emacs-version)))

I'm closing this bug then.  I also fixed a bug related to
icon-title-format, but it ended up unrelated to your problem.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Jul 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 293 days ago.

Previous Next


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