comparison src/dispnew.c @ 2339:a302de11debf

* dispnew.c (init_display): Initialize Vwindow_system.
author Jim Blandy <jimb@redhat.com>
date Wed, 24 Mar 1993 01:51:35 +0000
parents 4759343bbaad
children 90a5f91329f3
comparison
equal deleted inserted replaced
2338:36cc4399937f 2339:a302de11debf
1979 meta_key = 0; 1979 meta_key = 0;
1980 inverse_video = 0; 1980 inverse_video = 0;
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 1986 Vwindow_system = Qnil;
1987 /* Check if we're using a window system here before trying to 1987
1988 initialize the terminal. If we check the terminal first, 1988 /* If the user wants to use a window system, we shouldn't bother
1989 1989 initializing the terminal. This is especially important when the
1990 If someone has indicated that they want 1990 terminal is so dumb that emacs gives up before and doesn't bother
1991 to use a window system, we shouldn't bother initializing the 1991 using the window system.
1992 terminal. This is especially important when the terminal is so 1992
1993 dumb that emacs gives up before and doesn't bother using the window 1993 If the DISPLAY environment variable is set, try to use X, and die
1994 system. */ 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 (!inhibit_window_system && (display_arg || getenv ("DISPLAY")))
1998 { 1998 {
1999 Vwindow_system = intern ("x"); 1999 Vwindow_system = intern ("x");