aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Janík2001-10-28 18:53:39 +0000
committerPavel Janík2001-10-28 18:53:39 +0000
commit186486eb07ffdc72abbe5907ed100e9db402633d (patch)
treed41f4cb9f5f369f53958aaf0f2f95d7eb8b37b22 /src
parent4707d2d07995b52a096c85f874d69893dd86e774 (diff)
downloademacs-186486eb07ffdc72abbe5907ed100e9db402633d.tar.gz
emacs-186486eb07ffdc72abbe5907ed100e9db402633d.zip
Use argv[0] instead of emacs when -t was specified.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/emacs.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3e91f708bbc..2ba3c7cd09d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12001-10-28 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 12001-10-28 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 2
3 * emacs.c: Use argv[0] instead of emacs when -t was specified.
4
3 * keyboard.c: Change doc-string comments to `new style' [w/`doc:' 5 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
4 keyword]. 6 keyword].
5 Fix typos in comments. 7 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)
981 if (result < 0) 981 if (result < 0)
982 { 982 {
983 char *errstring = strerror (errno); 983 char *errstring = strerror (errno);
984 fprintf (stderr, "emacs: %s: %s\n", term, errstring); 984 fprintf (stderr, "%s: %s: %s\n", argv[0], term, errstring);
985 exit (1); 985 exit (1);
986 } 986 }
987 dup (0); 987 dup (0);
988 if (! isatty (0)) 988 if (! isatty (0))
989 { 989 {
990 fprintf (stderr, "emacs: %s: not a tty\n", term); 990 fprintf (stderr, "%s: %s: not a tty\n", argv[0], term);
991 exit (1); 991 exit (1);
992 } 992 }
993 fprintf (stderr, "Using %s\n", term); 993 fprintf (stderr, "Using %s\n", term);