diff options
| author | Jim Blandy <jimb@redhat.com> | 1993-03-25 02:54:23 +0000 |
|---|---|---|
| committer | Jim Blandy <jimb@redhat.com> | 1993-03-25 02:54:23 +0000 |
| commit | d460af17a8a1a8ff264b22c91a9652d8c45df435 (patch) | |
| tree | 552054e6f9e9223b2eb9e016ce28de177112ba04 | |
| parent | 35014b9f539701e4b1be1bd051a5662064a6b8ba (diff) | |
| download | emacs-d460af17a8a1a8ff264b22c91a9652d8c45df435.tar.gz | |
* dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
| -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 () with an error message if that doesn't work. */ #ifdef HAVE_X_WINDOWS - if (!inhibit_window_system && (display_arg || getenv ("DISPLAY"))) + if (! display_arg) + { +#ifdef VMS + display_arg = getenv ("DECW$DISPLAY"); +#else + display_arg = getenv ("DISPLAY"); +#endif + + if (!inhibit_window_system && display_arg) { Vwindow_system = intern ("x"); #ifdef HAVE_X11 |
