bug#41147: A modern frame-title-format

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Lars Ljung
I suggest that frame-title-format is changed to something like this:

(multiple-frames "GNU Emacs - %b"
                  ("GNU Emacs"))

This would give Emacs a slightly more modern look.

The current use of invocation-name might be useful for Emacs developers
running multiple versions, but it serves no purpose for normal users.

The current use of system-name has no real value when running Emacs
locally, but perhaps it could be added to remote frames only.

Kind regards,
Lars Ljung



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Eli Zaretskii
> From: Lars Ljung <[hidden email]>
> Date: Sat, 9 May 2020 11:48:31 +0200
>
> The current use of system-name has no real value when running Emacs
> locally, but perhaps it could be added to remote frames only.

Frames are never remote, only buffers are.



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Lars Ljung
Den 2020-05-09 kl. 11:57, skrev Eli Zaretskii:
>> From: Lars Ljung <[hidden email]>
>> Date: Sat, 9 May 2020 11:48:31 +0200
>>
>> The current use of system-name has no real value when running Emacs
>> locally, but perhaps it could be added to remote frames only.
>
> Frames are never remote, only buffers are.
>

I was thinking of the use case when DISPLAY is set to show frames on a
different machine, e.g. when running over SSH with X forwarding. Then it
could be useful to show system-name.



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Lars Ljung
In reply to this post by Lars Ljung
I did some research and as I understand it the GNOME guidelines
recommends just "%b", even when there is only one frame.

Many programs use the style "%b - GNU Emacs". E.g. gvim, Gimp, Firefox,
and LibreOffice.

Either way it seems popular to place the document name first, which
makes sense.

GNOME 2:
https://developer.gnome.org/hig-book/3.12/hig-book.html#primary-window-titles
GNOME 3: https://wiki.gnome.org/Design/HIG/ApplicationName



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Stefan Kangas
tags 41147 + patch
thanks

Lars Ljung <[hidden email]> writes:

> I did some research and as I understand it the GNOME guidelines recommends just
> "%b", even when there is only one frame.
>
> Many programs use the style "%b - GNU Emacs". E.g. gvim, Gimp, Firefox, and
> LibreOffice.

I think it makes sense to just do what other modern software does here.
If people want to do something more fancy, they can easily modify it
themselves.

How about the attached patch?  (NEWS and docs still needs updating.)

Best regards,
Stefan Kangas

0001-Simplify-frame-title-format-to-be-more-modern.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Stefan Kangas
Eli Zaretskii <[hidden email]> writes:

>> I think it makes sense to just do what other modern software does here.
>> If people want to do something more fancy, they can easily modify it
>> themselves.
>
> There's no way to customize what "emacs -Q" produces, though, and the
> patch changes that as well.
>
>> How about the attached patch?  (NEWS and docs still needs updating.)
>
> I think we need a broader user poll before we make such a change.  An
> opinion of a couple of people is not enough.

OK, I'll send this question to emacs-devel when I find some time.

Best regards,
Stefan Kangas



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Stefan Kangas
Stefan Kangas <[hidden email]> writes:

> OK, I'll send this question to emacs-devel when I find some time.

Now sent to emacs-devel:
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00886.html



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Stefan Kangas
Stefan Kangas <[hidden email]> writes:

> Now sent to emacs-devel:
> https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00886.html

After a long round of bike-shedding, the result of the discussion was
that 'invocation-name' is not important, whereas a subset of users
argued strongly in favor of 'system-name'.

While I think the latter is superfluous and better added in an Init file
or site file, I think adding the buffer name and replacing
'invocation-name' with "GNU Emacs" is already a step forward.

I therefore suggest to install the attached patch.

0001-Improve-frame-title-format-and-icon-title-format.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Eli Zaretskii
> From: Stefan Kangas <[hidden email]>
> Date: Fri, 11 Sep 2020 13:33:14 -0700
> Cc: [hidden email], [hidden email]
>
> After a long round of bike-shedding, the result of the discussion was
> that 'invocation-name' is not important, whereas a subset of users
> argued strongly in favor of 'system-name'.
>
> While I think the latter is superfluous and better added in an Init file
> or site file, I think adding the buffer name and replacing
> 'invocation-name' with "GNU Emacs" is already a step forward.
>
> I therefore suggest to install the attached patch.

Thanks, please go ahead.



Reply | Threaded
Open this post in threaded view
|

bug#41147: A modern frame-title-format

Stefan Kangas
close 41147 28.1
thanks

Eli Zaretskii <[hidden email]> writes:

>> I therefore suggest to install the attached patch.
>
> Thanks, please go ahead.

Thanks.  Now pushed to master as commit 817dd54649.