unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Tran <mark.tran@gmail.com>
To: Ben Key <bkey76@gmail.com>
Cc: Emacs-devel@gnu.org
Subject: Re: exec-path question
Date: Sat, 26 Feb 2011 01:48:34 -0800	[thread overview]
Message-ID: <AANLkTik3jxJ7RAfJVS8aUWjmL9HikrFoj29i-HQT_TP_@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=SgbWWbDpkqu2fiz+b27zZqDE5K4sFcWLRicxL@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2484 bytes --]

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.

More information at:

http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html
http://www.emacswiki.org/emacs/MacOSTweaks#toc13

On Fri, Feb 25, 2011 at 7:51 PM, Ben Key <bkey76@gmail.com> wrote:

> Hello,
>
> I have a question about the exec-path variable.  I am using the Nextstep
> build of Emacs on Mac OS X 10.6.6.  In both Emacs 23.2 and Emacs 24.0, the
> "/usr/local/bin" directory is not included in the list, even though it is
> included in my PATH environment variable.  In Emacs 23.2, the exec-path
> variable has the value ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
> "/Applications/Emacs.app/Contents/MacOS/bin").  In Emacs 24, the exec-path
> variable has the value ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
> "/Applications/Emacs24.app/Contents/MacOS/bin").  In Emacs 24 the following
> additional information is provided.
>
> Original value was ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin"
> "/usr/X11/bin" "/Users/bkey/src/emacs/trunk/lib-src"
> "/Users/bkey/src/emacs/trunk/nextstep/Emacs.app/Contents/MacOS//libexec/emacs/24.0.50/x86_64-apple-darwin10.6.0")
>
> It looks like, at least in Emacs 24, the "/usr/local/bin" directory is
> initially included in the exec-path but is latter removed for some reason.
>
> In both versions of Emacs, the  "/usr/local/bin" directory is included in
> the path if I run Emacs from the command line using the full path to the
> Emacs executable.  It is also included in the path if am debugging Emacs
> using GDB so I at a loss as to how best to discover the cause of the
> problem.  I only get the problem if I start Emacs using the icon in the
> Applications menu, which is my preferred method of starting Emacs.
>
> I need the "/usr/local/bin" directory to be included in my exec-path
> because I wish to use the ispell function and my hunspell executable is
> located there.  I know I can simply modify my .emacs file to add the
> "/usr/local/bin" directory to the exec-path, but I should not have to do
> that.  Emacs should not be removing this directory from the exec-path.
>
> Does anyone have any idea how I should go about tracking down the cause of
> this problem?
>
>

[-- Attachment #2: Type: text/html, Size: 3406 bytes --]

  parent reply	other threads:[~2011-02-26  9:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-26  3:51 exec-path question Ben Key
2011-02-26  9:47 ` Chad Brown
2011-02-26  9:48 ` Mark Tran [this message]
2011-02-27  4:11   ` Ben Key
2011-02-27  8:50   ` Harald Hanche-Olsen
2011-02-28 16:16     ` Harald Hanche-Olsen

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=AANLkTik3jxJ7RAfJVS8aUWjmL9HikrFoj29i-HQT_TP_@mail.gmail.com \
    --to=mark.tran@gmail.com \
    --cc=Emacs-devel@gnu.org \
    --cc=bkey76@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).