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.
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);