changeset 11355:74046c14a0ad

(make_terminal_frame): Use Emacs, Emacs-2, ... as name.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Apr 1995 08:00:16 +0000
parents 17f7be3e2443
children 4be78e93d1be
files src/frame.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Mon Apr 10 07:57:44 1995 +0000
+++ b/src/frame.c	Mon Apr 10 08:00:16 1995 +0000
@@ -353,9 +353,16 @@
   Vframe_list = Fcons (frame, Vframe_list);
 
   terminal_frame_count++;
-  sprintf (name, "terminal-%d", terminal_frame_count);
+  if (terminal_frame_count == 1)
+    {
+      f->name = build_string ("Emacs");
+    }
+  else
+    {
+      sprintf (name, "Emacs-%d", terminal_frame_count);
+      f->name = build_string (name);
+    }
 
-  f->name = build_string (name);
   f->visible = 1;		/* FRAME_SET_VISIBLE wd set frame_garbaged. */
   f->async_visible = 1;		/* Don't let visible be cleared later. */
   f->display.nothing = 1;	/* Nonzero means frame isn't deleted.  */