From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: running ./temacs Date: Sun, 21 Nov 2010 00:48:12 -0500 Message-ID: References: <83wro9bvjj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290318515 23291 80.91.229.12 (21 Nov 2010 05:48:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 05:48:35 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 21 06:48:31 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PK2mt-00021q-A9 for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2010 06:48:31 +0100 Original-Received: from localhost ([127.0.0.1]:40739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PK2mt-0000e0-30 for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2010 00:48:31 -0500 Original-Received: from [140.186.70.92] (port=45272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PK2mk-0000cG-Oy for emacs-devel@gnu.org; Sun, 21 Nov 2010 00:48:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PK2mj-0001my-5H for emacs-devel@gnu.org; Sun, 21 Nov 2010 00:48:22 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:65515 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PK2mh-0001mE-9T; Sun, 21 Nov 2010 00:48:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlEIAJtB6ExMCqtq/2dsb2JhbAChZ31yunuFSwSEWo1p X-IronPort-AV: E=Sophos;i="4.59,231,1288584000"; d="scan'208";a="83111976" Original-Received: from 76-10-171-106.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.106]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Nov 2010 00:48:12 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 83A20660F5; Sun, 21 Nov 2010 00:48:12 -0500 (EST) In-Reply-To: <83wro9bvjj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Nov 2010 09:51:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132945 Archived-At: >> >>>>> [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, ...)? >> >> set_initial_environment only initializes Vprocess_environment if >> >> `initialized' is set. >> > Do you happen to know why? >> No idea. I'd speculate that it's undesirable to initialize it when >> dumping... > Yes, probably. So `initialized' is not the right variable to test. Maybe Vpurify_flag would be closer since it is a better indicator of whether we're about to dump or not, AFAIK. Stefan