From 817dd546497aadefbe9acc8762e3f7190799c5e6 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 13 Sep 2020 18:24:31 +0200 Subject: [PATCH] Improve frame-title-format and icon-title-format * src/xdisp.c (syms_of_xdisp): Replace 'invocation-name' with the text "%b - GNU Emacs" and replace "@" with " at ". (Bug#41147) * etc/NEWS: Announce the above change. --- etc/NEWS | 11 +++++++++++ src/xdisp.c | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 8f10a6213da..db2adcec155 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -127,6 +127,17 @@ the mouse cursor is on the scroll bars, fringes, margins, header line, and mode line. ('mwheel-mode' is enabled by default on most graphical displays.) +--- +** The default value of 'frame-title-format' and icon-title-format' has changed. +These variables are used to display the title bar of visible frames +and the title bar of an iconified frame. They now show the name of +the current buffer and the text "GNU Emacs" instead of the value of +'invocation-name'. To get the old behavior back, add the following to +your Init file: + + (setq frame-title-format '(multiple-frames "%b" + ("" invocation-name "@" system-name))) + * Editing Changes in Emacs 28.1 diff --git a/src/xdisp.c b/src/xdisp.c index 69e5a9e1cf1..10ddb53dba2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -34831,8 +34831,7 @@ and is used only on frames for which no explicit name has been set Oracle Developer Studio 12.6. */ Lisp_Object icon_title_name_format = pure_list (empty_unibyte_string, - intern_c_string ("invocation-name"), - build_pure_c_string ("@"), + build_pure_c_string ("%b - GNU Emacs at "), intern_c_string ("system-name")); Vicon_title_format = Vframe_title_format -- 2.39.5