From: Pavel Janík Date: Sun, 28 Oct 2001 18:53:39 +0000 (+0000) Subject: Use argv[0] instead of emacs when -t was specified. X-Git-Tag: ttn-vms-21-2-B4~19072 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=186486eb07ffdc72abbe5907ed100e9db402633d;p=emacs.git Use argv[0] instead of emacs when -t was specified. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3e91f708bbc..2ba3c7cd09d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-10-28 Pavel Jan,Bm(Bk + * 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. diff --git a/src/emacs.c b/src/emacs.c index db031bc5c8a..f709cc9753f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -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);