mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
Use argv[0] instead of emacs when -t was specified.
This commit is contained in:
parent
4707d2d079
commit
186486eb07
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue