aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-03-25 02:54:23 +0000
committerJim Blandy1993-03-25 02:54:23 +0000
commitd460af17a8a1a8ff264b22c91a9652d8c45df435 (patch)
tree552054e6f9e9223b2eb9e016ce28de177112ba04 /src
parent35014b9f539701e4b1be1bd051a5662064a6b8ba (diff)
downloademacs-d460af17a8a1a8ff264b22c91a9652d8c45df435.tar.gz
emacs-d460af17a8a1a8ff264b22c91a9652d8c45df435.zip
* dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index c106c32980d..25eccf95967 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1994,7 +1994,15 @@ init_display ()
1994 with an error message if that doesn't work. */ 1994 with an error message if that doesn't work. */
1995 1995
1996#ifdef HAVE_X_WINDOWS 1996#ifdef HAVE_X_WINDOWS
1997 if (!inhibit_window_system && (display_arg || getenv ("DISPLAY"))) 1997 if (! display_arg)
1998 {
1999#ifdef VMS
2000 display_arg = getenv ("DECW$DISPLAY");
2001#else
2002 display_arg = getenv ("DISPLAY");
2003#endif
2004
2005 if (!inhibit_window_system && display_arg)
1998 { 2006 {
1999 Vwindow_system = intern ("x"); 2007 Vwindow_system = intern ("x");
2000#ifdef HAVE_X11 2008#ifdef HAVE_X11