[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: running ./temacs
From: |
Stefan Monnier |
Subject: |
Re: running ./temacs |
Date: |
Thu, 18 Nov 2010 09:26:53 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> [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:
Could you explain your code (i.e. why you need those strcmp hacks, why
you need to set&unset initialized, ...)?
Basically, the control flow around these parts of the code is a bit too
intricate for my poor head right now, and on top of that, I don't know
what it's trying to achieve.
> --- 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. */
-- Stefan
- running ./temacs, Dan Nicolaescu, 2010/11/17
- Re: running ./temacs, Óscar Fuentes, 2010/11/17
- Re: running ./temacs, Dan Nicolaescu, 2010/11/17
- Re: running ./temacs,
Stefan Monnier <=
- 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