From: Richard M. Stallman Date: Mon, 17 Jul 2006 20:59:18 +0000 (+0000) Subject: (init_display): Mention DISPLAY as well as TERM in err msg. X-Git-Tag: emacs-pretest-22.0.90~1401 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d12ff0bed31f22ca4e060ac3245cf424b88dc84;p=emacs.git (init_display): Mention DISPLAY as well as TERM in err msg. --- 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); }