diff options
| author | Ken Raeburn | 2010-05-15 17:16:20 -0400 |
|---|---|---|
| committer | Ken Raeburn | 2010-05-15 17:16:20 -0400 |
| commit | 8b4eb7969cefe32154d719ac7c3137b1e43b72f9 (patch) | |
| tree | 63354df1dcc01508693b28282863e51a13350bce /src | |
| parent | e45b9e19390a085528f1fc643e8cc1800599ee5f (diff) | |
| download | emacs-8b4eb7969cefe32154d719ac7c3137b1e43b72f9.tar.gz emacs-8b4eb7969cefe32154d719ac7c3137b1e43b72f9.zip | |
* emacs.c (main): Initialize initial-environment and process-environment
before generating from env, not after.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/emacs.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 31084286ddb..32761b6f446 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-05-15 Ken Raeburn <raeburn@raeburn.org> | 1 | 2010-05-15 Ken Raeburn <raeburn@raeburn.org> |
| 2 | 2 | ||
| 3 | * emacs.c (main): Initialize initial-environment and | ||
| 4 | process-environment before generating from env, not after. | ||
| 5 | |||
| 3 | Handle --version reasonably in CANNOT_DUMP configuration. | 6 | Handle --version reasonably in CANNOT_DUMP configuration. |
| 4 | * emacs.c (emacs_version, emacs_copyright): New string variables. | 7 | * emacs.c (emacs_version, emacs_copyright): New string variables. |
| 5 | (Vemacs_version, Vemacs_copyright): New Lisp_Object variables. | 8 | (Vemacs_version, Vemacs_copyright): New Lisp_Object variables. |
diff --git a/src/emacs.c b/src/emacs.c index 36db274adf6..c0ef926da75 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1543,6 +1543,11 @@ main (int argc, char **argv) | |||
| 1543 | ns_init_paths (); | 1543 | ns_init_paths (); |
| 1544 | #endif | 1544 | #endif |
| 1545 | 1545 | ||
| 1546 | /* Initialize and GC-protect Vinitial_environment and | ||
| 1547 | Vprocess_environment before set_initial_environment fills them | ||
| 1548 | in. */ | ||
| 1549 | if (!initialized) | ||
| 1550 | syms_of_callproc (); | ||
| 1546 | /* egetenv is a pretty low-level facility, which may get called in | 1551 | /* egetenv is a pretty low-level facility, which may get called in |
| 1547 | many circumstances; it seems flimsy to put off initializing it | 1552 | many circumstances; it seems flimsy to put off initializing it |
| 1548 | until calling init_callproc. */ | 1553 | until calling init_callproc. */ |
| @@ -1592,7 +1597,6 @@ main (int argc, char **argv) | |||
| 1592 | syms_of_callint (); | 1597 | syms_of_callint (); |
| 1593 | syms_of_casefiddle (); | 1598 | syms_of_casefiddle (); |
| 1594 | syms_of_casetab (); | 1599 | syms_of_casetab (); |
| 1595 | syms_of_callproc (); | ||
| 1596 | syms_of_category (); | 1600 | syms_of_category (); |
| 1597 | syms_of_ccl (); | 1601 | syms_of_ccl (); |
| 1598 | syms_of_character (); | 1602 | syms_of_character (); |