]> git.eshelyaron.com Git - emacs.git/commitdiff
Use argv[0] instead of emacs when -t was specified.
authorPavel Janík <Pavel@Janik.cz>
Sun, 28 Oct 2001 18:53:39 +0000 (18:53 +0000)
committerPavel Janík <Pavel@Janik.cz>
Sun, 28 Oct 2001 18:53:39 +0000 (18:53 +0000)
src/ChangeLog
src/emacs.c

index 3e91f708bbc1afc404a6fd21f733cca511d0d1d0..2ba3c7cd09d4ca83bc85254f07be796e15416eac 100644 (file)
@@ -1,5 +1,7 @@
 2001-10-28  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
+       * emacs.c: Use argv[0] instead of emacs when -t was specified.
+
        * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
        keyword].
        Fix typos in comments.
index db031bc5c8a48e2139eb1ccf7e9bd74e44461aa2..f709cc9753fe62c4e13cb5e994d4174aef6d80cb 100644 (file)
@@ -981,13 +981,13 @@ main (argc, argv, envp)
          if (result < 0)
            {
              char *errstring = strerror (errno);
-             fprintf (stderr, "emacs: %s: %s\n", term, errstring);
+             fprintf (stderr, "%s: %s: %s\n", argv[0], term, errstring);
              exit (1);
            }
          dup (0);
          if (! isatty (0))
            {
-             fprintf (stderr, "emacs: %s: not a tty\n", term);
+             fprintf (stderr, "%s: %s: not a tty\n", argv[0], term);
              exit (1);
            }
          fprintf (stderr, "Using %s\n", term);