aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1995-11-07 07:16:44 +0000
committerGeoff Voelker1995-11-07 07:16:44 +0000
commit8ba50e1ad034085ea4d48a659eb7381e032b44d8 (patch)
tree60970c8d294c8b5c89ec4f35d6be3e3cfa0716cc
parentfd2e066a8654cbf5527224894f27d84b20f5ce5a (diff)
downloademacs-8ba50e1ad034085ea4d48a659eb7381e032b44d8.tar.gz
emacs-8ba50e1ad034085ea4d48a659eb7381e032b44d8.zip
[HAVE_NTGUI]: Declare Vwindow_system.
[HAVE_NTGUI] (main): Enable inhibit_window_system. Initialize environment from registry. Declare syms of Win32 windowing modules. Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
-rw-r--r--src/emacs.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/emacs.c b/src/emacs.c
index f0741f53ca0..51dcdd10b66 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -110,9 +110,9 @@ int display_arg;
110 Tells GC how to save a copy of the stack. */ 110 Tells GC how to save a copy of the stack. */
111char *stack_bottom; 111char *stack_bottom;
112 112
113#ifdef HAVE_X_WINDOWS 113#ifdef HAVE_WINDOW_SYSTEM
114extern Lisp_Object Vwindow_system; 114extern Lisp_Object Vwindow_system;
115#endif /* HAVE_X_WINDOWS */ 115#endif /* HAVE_WINDOW_SYSTEM */
116 116
117extern Lisp_Object Vauto_save_list_file_name; 117extern Lisp_Object Vauto_save_list_file_name;
118 118
@@ -556,7 +556,7 @@ main (argc, argv, envp)
556 exit (1); 556 exit (1);
557 } 557 }
558 fprintf (stderr, "Using %s\n", term); 558 fprintf (stderr, "Using %s\n", term);
559#ifdef HAVE_X_WINDOWS 559#ifdef HAVE_WINDOW_SYSTEM
560 inhibit_window_system = 1; /* -t => -nw */ 560 inhibit_window_system = 1; /* -t => -nw */
561#endif 561#endif
562 } 562 }
@@ -750,6 +750,11 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
750 else init_gettimeofday (); 750 else init_gettimeofday ();
751#endif 751#endif
752 752
753#ifdef WINDOWSNT
754 /* Initialize environment from registry settings. */
755 init_environment ();
756#endif
757
753 /* egetenv is a pretty low-level facility, which may get called in 758 /* egetenv is a pretty low-level facility, which may get called in
754 many circumstances; it seems flimsy to put off initializing it 759 many circumstances; it seems flimsy to put off initializing it
755 until calling init_callproc. */ 760 until calling init_callproc. */
@@ -866,6 +871,14 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
866 syms_of_xmenu (); 871 syms_of_xmenu ();
867#endif 872#endif
868 873
874#ifdef HAVE_NTGUI
875 syms_of_win32term ();
876 syms_of_win32fns ();
877 syms_of_win32faces ();
878 syms_of_win32select ();
879 syms_of_win32menu ();
880#endif /* HAVE_NTGUI */
881
869#ifdef SYMS_SYSTEM 882#ifdef SYMS_SYSTEM
870 SYMS_SYSTEM; 883 SYMS_SYSTEM;
871#endif 884#endif