[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 817dd54: Improve frame-title-format and icon-title-format

From: Stefan Kangas
Subject: master 817dd54: Improve frame-title-format and icon-title-format
Date: Sun, 13 Sep 2020 12:24:45 -0400 (EDT)

branch: master
commit 817dd546497aadefbe9acc8762e3f7190799c5e6
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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 8f10a62..db2adce 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
+** The default value of 'frame-title-format' and icon-title-format' has 
+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 69e5a9e..10ddb53 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"));
     = Vframe_title_format

reply via email to

[Prev in Thread] Current Thread [Next in Thread]