From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: exec-path question Date: Sun, 27 Feb 2011 09:50:30 +0100 (CET) Message-ID: <20110227.095030.1994368869827547171.hanche@math.ntnu.no> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298796646 28054 80.91.229.12 (27 Feb 2011 08:50:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2011 08:50:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 27 09:50:41 2011 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 1PtcKu-0004n2-KK for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2011 09:50:40 +0100 Original-Received: from localhost ([127.0.0.1]:60495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtcKt-0001o8-QF for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2011 03:50:39 -0500 Original-Received: from [140.186.70.92] (port=39534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtcKo-0001nw-3T for emacs-devel@gnu.org; Sun, 27 Feb 2011 03:50:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtcKm-00073t-S4 for emacs-devel@gnu.org; Sun, 27 Feb 2011 03:50:33 -0500 Original-Received: from anne.math.ntnu.no ([129.241.15.150]:60077) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PtcKm-00073h-Dh for emacs-devel@gnu.org; Sun, 27 Feb 2011 03:50:32 -0500 Original-Received: (qmail 13161 invoked from network); 27 Feb 2011 08:50:28 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.102) by anne.math.ntnu.no with ESMTPA; 27 Feb 2011 08:50:28 -0000 In-Reply-To: X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.50 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 129.241.15.150 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:136574 Archived-At: [Mark Tran (2011-02-26 09:48:34 UTC)] > Applications in OS X are not launched by your shell and therefore do not > inherit it's environment variables. They're started through launchd. > > If you want Emacs.app to inherit environment variables then you can set user > session environment variables in ~/.MacOSX/environment.plist. An alternative, as far as the PATH and MANPATH variables goes, is to set these from the contents of /etc/paths and /etc/paths.d/* (for PATH) and /etc/manpaths and /etc/manpaths.d/* (for MANPATH). I think it could be argued that emacs on the mac should do this by default. See also the code in /etc/profile and the path_helper manual page. - Harald