before generating from env, not after.
2010-05-15 Ken Raeburn <raeburn@raeburn.org>
+ * emacs.c (main): Initialize initial-environment and
+ process-environment before generating from env, not after.
+
Handle --version reasonably in CANNOT_DUMP configuration.
* emacs.c (emacs_version, emacs_copyright): New string variables.
(Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
ns_init_paths ();
#endif
+ /* Initialize and GC-protect Vinitial_environment and
+ Vprocess_environment before set_initial_environment fills them
+ in. */
+ if (!initialized)
+ syms_of_callproc ();
/* egetenv is a pretty low-level facility, which may get called in
many circumstances; it seems flimsy to put off initializing it
until calling init_callproc. */
syms_of_callint ();
syms_of_casefiddle ();
syms_of_casetab ();
- syms_of_callproc ();
syms_of_category ();
syms_of_ccl ();
syms_of_character ();