From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: running ./temacs Date: Thu, 18 Nov 2010 16:20:08 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290115225 7164 80.91.229.12 (18 Nov 2010 21:20:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 21:20:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 18 22:20:18 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 1PJBtv-0008Qg-Us for ged-emacs-devel@m.gmane.org; Thu, 18 Nov 2010 22:20:16 +0100 Original-Received: from localhost ([127.0.0.1]:33968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJBtv-0000pO-91 for ged-emacs-devel@m.gmane.org; Thu, 18 Nov 2010 16:20:15 -0500 Original-Received: from [140.186.70.92] (port=52849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJBtr-0000pJ-1n for emacs-devel@gnu.org; Thu, 18 Nov 2010 16:20:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJBtq-00085P-3n for emacs-devel@gnu.org; Thu, 18 Nov 2010 16:20:10 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJBtq-00085L-2P for emacs-devel@gnu.org; Thu, 18 Nov 2010 16:20:10 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PJBto-000547-88; Thu, 18 Nov 2010 16:20:08 -0500 In-Reply-To: (Stefan Monnier's message of "Thu\, 18 Nov 2010 09\:26\:53 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132834 Archived-At: Stefan Monnier 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: > > 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. The ugly hack only sets `initialized' when not dumping, so that if you run temacs without dumping Vprocess_environment gets initialized. If Vprocess_environment is not initialized (getenv "HOME") returns nil, any many things go bad from there.