unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55850: Feature request: customizabe icon-title-format
@ 2022-06-08 16:53 Andreas Röhler
  2022-06-08 17:18 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-08 16:53 UTC (permalink / raw)
  To: 55850

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 526 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-08 16:53 bug#55850: Feature request: customizabe icon-title-format Andreas Röhler
@ 2022-06-08 17:18 ` Eli Zaretskii
  2022-06-08 19:01   ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2022-06-08 17:18 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 55850

> Date: Wed, 8 Jun 2022 18:53:13 +0200
> From: Andreas Röhler <andreas.roehler@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?





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-08 17:18 ` Eli Zaretskii
@ 2022-06-08 19:01   ` Andreas Röhler
  2022-06-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:24     ` Lars Ingebrigtsen
  0 siblings, 2 replies; 17+ messages in thread
From: Andreas Röhler @ 2022-06-08 19:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55850

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]


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@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.

[-- Attachment #2: Type: text/html, Size: 1180 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-08 19:01   ` Andreas Röhler
@ 2022-06-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09  6:32       ` Andreas Röhler
  2022-06-09 13:24     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09  1:46 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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?





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09  6:32       ` Andreas Röhler
  2022-06-09  6:59         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09  6:32 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850

[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]


Am 09.06.22 um 03:46 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@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'



[-- Attachment #2: Type: text/html, Size: 3263 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09  6:32       ` Andreas Röhler
@ 2022-06-09  6:59         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09  7:55           ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09  6:59 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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?





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09  6:59         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09  7:55           ` Andreas Röhler
  2022-06-09  8:07             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09  7:55 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]


Am 09.06.22 um 08:59 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@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.

[-- Attachment #2: Type: text/html, Size: 1004 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09  7:55           ` Andreas Röhler
@ 2022-06-09  8:07             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 11:07               ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09  8:07 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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?





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09  8:07             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 11:07               ` Andreas Röhler
  2022-06-09 11:34                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09 11:07 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]


Am 09.06.22 um 10:07 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@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.

[-- Attachment #2: Type: text/html, Size: 1224 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 11:07               ` Andreas Röhler
@ 2022-06-09 11:34                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 11:41                   ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 11:34 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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)





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 11:34                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 11:41                   ` Andreas Röhler
  2022-06-09 13:24                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09 11:41 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]


Am 09.06.22 um 13:34 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@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@foo for example. Where foo is the hostname here.

[-- Attachment #2: Type: text/html, Size: 1227 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-08 19:01   ` Andreas Röhler
  2022-06-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 13:24     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 17+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-09 13:24 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 11:41                   ` Andreas Röhler
@ 2022-06-09 13:24                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:43                       ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 13:24 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> It's about the display of icon-title-format's content. Which is shown
> on top of Emacs as emacs@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?





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 13:24                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 13:43                       ` Andreas Röhler
  2022-06-09 13:49                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09 13:43 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]


Am 09.06.22 um 15:24 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@easy-emacs.de>  writes:
>
>> It's about the display of icon-title-format's content. Which is shown
>> on top of Emacs as emacs@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.

[-- Attachment #1.2: Type: text/html, Size: 1360 bytes --]

[-- Attachment #2: affe.png --]
[-- Type: image/png, Size: 83403 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 13:43                       ` Andreas Röhler
@ 2022-06-09 13:49                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 14:14                           ` Andreas Röhler
  0 siblings, 1 reply; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 13:49 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850

Andreas Röhler <andreas.roehler@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'.





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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 13:49                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 14:14                           ` Andreas Röhler
  2022-06-10  0:47                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2022-06-09 14:14 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 55850

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]


Am 09.06.22 um 15:49 schrieb Po Lu:
> Andreas Röhler<andreas.roehler@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)))


[-- Attachment #2: Type: text/html, Size: 1134 bytes --]

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

* bug#55850: Feature request: customizabe icon-title-format
  2022-06-09 14:14                           ` Andreas Röhler
@ 2022-06-10  0:47                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 17+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-10  0:47 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Eli Zaretskii, 55850-done

Andreas Röhler <andreas.roehler@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.





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

end of thread, other threads:[~2022-06-10  0:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 16:53 bug#55850: Feature request: customizabe icon-title-format Andreas Röhler
2022-06-08 17:18 ` Eli Zaretskii
2022-06-08 19:01   ` Andreas Röhler
2022-06-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09  6:32       ` Andreas Röhler
2022-06-09  6:59         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09  7:55           ` Andreas Röhler
2022-06-09  8:07             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 11:07               ` Andreas Röhler
2022-06-09 11:34                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 11:41                   ` Andreas Röhler
2022-06-09 13:24                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 13:43                       ` Andreas Röhler
2022-06-09 13:49                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 14:14                           ` Andreas Röhler
2022-06-10  0:47                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 13:24     ` Lars Ingebrigtsen

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).