[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: running ./temacs
From: |
Dan Nicolaescu |
Subject: |
Re: running ./temacs |
Date: |
Wed, 17 Nov 2010 23:44:36 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Dan Nicolaescu <address@hidden> writes:
> [Hacking around this so that Vprocess_environment is initialized when
> not dumping makes ./temacs work correctly]
In case anyone wants to see the difference in behavior, here's the ugly hack:
--- src/emacs.c 2010-11-15 06:10:35 +0000
+++ src/emacs.c 2010-11-17 07:40:04 +0000
@@ -1455,7 +1455,15 @@ main (int argc, char **argv)
/* 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. */
- set_initial_environment ();
+
+ if (!initialized && !((strcmp (argv[argc-1], "dump") == 0
+ || strcmp (argv[argc-1], "bootstrap") == 0))){
+ initialized = 1;
+ set_initial_environment ();
+ initialized = 0;
+ }
+ else
+ set_initial_environment ();
/* AIX crashes are reported in system versions 3.2.3 and 3.2.4
if this is not done. Do it after set_global_environment so that we
don't pollute Vglobal_environment. */
- running ./temacs, Dan Nicolaescu, 2010/11/17
- Re: running ./temacs, Óscar Fuentes, 2010/11/17
- Re: running ./temacs,
Dan Nicolaescu <=
- Re: running ./temacs, Stefan Monnier, 2010/11/18
- Re: running ./temacs, Dan Nicolaescu, 2010/11/18
- Re: running ./temacs, Stefan Monnier, 2010/11/18
- Re: running ./temacs, Dan Nicolaescu, 2010/11/18
- Re: running ./temacs, Eli Zaretskii, 2010/11/19
- Re: running ./temacs, Dan Nicolaescu, 2010/11/20
- Re: running ./temacs, Stefan Monnier, 2010/11/21