aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-03-24 01:51:35 +0000
committerJim Blandy1993-03-24 01:51:35 +0000
commit1315c181f58877fa580b4d7940460b2504a678af (patch)
tree3c8848331b74a9bd24eb2168970b3382630b0d85 /src
parent1e95ed28db7059d9b6e2e30faa4988ed42b53245 (diff)
downloademacs-1315c181f58877fa580b4d7940460b2504a678af.tar.gz
emacs-1315c181f58877fa580b4d7940460b2504a678af.zip
* dispnew.c (init_display): Initialize Vwindow_system.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 1e50178b74b..c106c32980d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1981,17 +1981,17 @@ init_display ()
1981 cursor_in_echo_area = 0; 1981 cursor_in_echo_area = 0;
1982 terminal_type = (char *) 0; 1982 terminal_type = (char *) 0;
1983 1983
1984 /* If the DISPLAY environment variable is set, try to use X, and 1984 /* Now is the time to initialize this; it's used by init_sys_modes
1985 die with an error message if that doesn't work. */ 1985 during startup. */
1986 Vwindow_system = Qnil;
1986 1987
1987 /* Check if we're using a window system here before trying to 1988 /* If the user wants to use a window system, we shouldn't bother
1988 initialize the terminal. If we check the terminal first, 1989 initializing the terminal. This is especially important when the
1990 terminal is so dumb that emacs gives up before and doesn't bother
1991 using the window system.
1989 1992
1990 If someone has indicated that they want 1993 If the DISPLAY environment variable is set, try to use X, and die
1991 to use a window system, we shouldn't bother initializing the 1994 with an error message if that doesn't work. */
1992 terminal. This is especially important when the terminal is so
1993 dumb that emacs gives up before and doesn't bother using the window
1994 system. */
1995 1995
1996#ifdef HAVE_X_WINDOWS 1996#ifdef HAVE_X_WINDOWS
1997 if (!inhibit_window_system && (display_arg || getenv ("DISPLAY"))) 1997 if (!inhibit_window_system && (display_arg || getenv ("DISPLAY")))