From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.help Subject: Re: Changing the PATH from emacs? Date: Mon, 11 Feb 2008 18:59:37 +0100 Message-ID: <87r6fj8jcm.fsf@gmx.de> References: <87odanqwxr.fsf@lvps87-230-32-149.dedicated.hosteurope.de> <878x1r9yq1.fsf@gmx.de> <87bq6nqt1t.fsf@lvps87-230-32-149.dedicated.hosteurope.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202755409 22341 80.91.229.12 (11 Feb 2008 18:43:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 18:43:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 19:43:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOdcz-0001mf-OJ for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 19:43:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOdcW-0001Gm-Cu for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 13:43:12 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: p548666e4.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1202752690 6475 84.134.102.228 (11 Feb 2008 17:58:10 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 11 Feb 2008 17:58:10 +0000 (UTC) User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux) Cancel-Lock: sha1:XhXOASmu7aK8XpCJ1hPVg23bAvE= Original-Xref: shelby.stanford.edu gnu.emacs.help:156061 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51433 Archived-At: On 2008-02-11 18:52 +0100, Stefan Arentz wrote: > Sven Joachim writes: > >> On 2008-02-11 18:25 +0100, Peter Dyballa wrote: >> >>> Am 11.02.2008 um 17:28 schrieb Stefan Arentz: >>> >>>> There doesn't seem to be a way to do this through Emacs.app/Info.plist >>>> so my question is whether it possible to change the PATH from my >>>> .emacs profile? >>> >>> (setenv "PATH" (concat "/opt/local/bin" ":" (getenv "PATH"))) >> >> Are you sure that this will work? AFAIK `setenv' only modifies the >> environment of subprocesses; where Emacs searches for programs is >> determined by the lisp variable `exec-path'. > > Indeed. It did not work, I tested it the wrong way and was confused. > > Your exec-path hint did the trick though! It might be best to set up both. When Emacs executes a program directly (such as in call-process or start-process), you need to modify exec-path, but when it uses a shell (as in shell-command), it is the PATH environment variable that is relevant. Cheers, Sven