aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorAndreas Schwab2006-03-20 22:41:23 +0000
committerAndreas Schwab2006-03-20 22:41:23 +0000
commitc1fc674b45aa1f241c0703207ac30b7ec79beea3 (patch)
tree0ce2d9a0f616763df1f605d3ddd73ee40c9a3166 /src/dispnew.c
parent7d6194544ec237070423a6edb3a3011931d177d9 (diff)
downloademacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.tar.gz
emacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.zip
* dispnew.c (init_display): Check DISPLAY here.
* emacs.c (main): Don't check here. * xterm.c (x_display_ok): Don't use DISPLAY env var.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index f6ce8eb43f4..ff7758c7538 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6664,6 +6664,13 @@ init_display ()
6664#endif 6664#endif
6665 6665
6666 display_arg = (display != 0 && *display != 0); 6666 display_arg = (display != 0 && *display != 0);
6667
6668 if (display_arg && !x_display_ok (display))
6669 {
6670 fprintf (stderr, "Display %s unavailable, simulating -nw\n",
6671 display);
6672 inhibit_window_system = 1;
6673 }
6667 } 6674 }
6668 6675
6669 if (!inhibit_window_system && display_arg 6676 if (!inhibit_window_system && display_arg