summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2006-07-17 20:59:18 +0000
committerRichard M. Stallman <rms@gnu.org>2006-07-17 20:59:18 +0000
commitc1373782aefe266ddde485dc283f1f344aef4ee8 (patch)
treea2128706f626390d090f3b32642a7332b80fccc8 /src/dispnew.c
parentae51318bcde5d076531e0494b7a8a735565299ea (diff)
downloademacs-c1373782aefe266ddde485dc283f1f344aef4ee8.tar.gz
(init_display): Mention DISPLAY as well as TERM in err msg.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index cf0d8668906..a0dc95a2ba8 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6825,9 +6825,15 @@ init_display ()
For types defined in VMS, use set term /device=TYPE.\n\
For types not defined in VMS, use define emacs_term \"TYPE\".\n\
\(The quotation marks are necessary since terminal types are lower case.)\n");
-#else
- fprintf (stderr, "Please set the environment variable TERM; see tset(1).\n");
-#endif
+#else /* not VMS */
+
+#ifdef HAVE_WINDOW_SYSTEM
+ if (inhibit_window_system)
+ fprintf (stderr, "Please set the environment variable TERM; see `tset'.\n");
+ else
+#endif /* HAVE_WINDOW_SYSTEM */
+ fprintf (stderr, "Please set the environment variable DISPLAY or TERM (see `tset').\n");
+#endif /* not VMS */
exit (1);
}