Commit 186486eb authored by Pavel Janík's avatar Pavel Janík

Use argv[0] instead of emacs when -t was specified.

parent 4707d2d0
2001-10-28 Pavel Jan,Bm(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.
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment