From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing the PATH from emacs?
Date: Mon, 11 Feb 2008 18:59:37 +0100 [thread overview]
Message-ID: <87r6fj8jcm.fsf@gmx.de> (raw)
In-Reply-To: 87bq6nqt1t.fsf@lvps87-230-32-149.dedicated.hosteurope.de
On 2008-02-11 18:52 +0100, Stefan Arentz wrote:
> Sven Joachim <svenjoac@gmx.de> 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
next prev parent reply other threads:[~2008-02-11 17:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 16:28 Changing the PATH from emacs? Stefan Arentz
2008-02-11 17:25 ` Peter Dyballa
[not found] ` <mailman.7293.1202750758.18990.help-gnu-emacs@gnu.org>
2008-02-11 17:38 ` Stefan Arentz
2008-02-11 17:42 ` Sven Joachim
2008-02-11 17:52 ` Stefan Arentz
2008-02-11 17:59 ` Sven Joachim [this message]
2008-02-11 17:45 ` Sven Joachim
2008-02-13 17:16 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r6fj8jcm.fsf@gmx.de \
--to=svenjoac@gmx.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).