diff options
| author | Jim Blandy | 1993-03-25 02:54:23 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-25 02:54:23 +0000 |
| commit | d460af17a8a1a8ff264b22c91a9652d8c45df435 (patch) | |
| tree | 552054e6f9e9223b2eb9e016ce28de177112ba04 /src | |
| parent | 35014b9f539701e4b1be1bd051a5662064a6b8ba (diff) | |
| download | emacs-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.c | 10 |
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 |