Mercurial > emacs
changeset 2359:90a5f91329f3
* dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 25 Mar 1993 02:54:23 +0000 |
parents | e99cada8fb8f |
children | c12e0f0a3179 |
files | src/dispnew.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Thu Mar 25 02:45:35 1993 +0000 +++ b/src/dispnew.c Thu Mar 25 02:54:23 1993 +0000 @@ -1994,7 +1994,15 @@ 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