From: Xue Fuqiao <xfq.free@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Cannot use `vc-annotate' on OS X
Date: Tue, 4 Jun 2013 07:00:54 +0800 [thread overview]
Message-ID: <CAAF+z6FSMFSJoLzwy9Ao8-Y4VxG6j-_Lt5BMf-KWVMeCYxK6PQ@mail.gmail.com> (raw)
In-Reply-To: <8738t0foic.fsf@yandex.ru>
Hi Dmitry and Eli,
On Mon, Jun 3, 2013 at 12:47 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> Date: Sun, 2 Jun 2013 11:05:05 +0800
>>> From: Xue Fuqiao <xfq.free@gmail.com>
>>> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
>>>
>>> `F1 v exec-path RET':
>>> exec-path is a variable defined in `C source code'.
>>> Its value is
>>> ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>>> "/Users/xfq/emacs-repo/bzr/trunk/nextstep/Emacs.app/Contents/MacOS/libexec"
>>> "/Users/xfq/emacs-repo/bzr/trunk/nextstep/Emacs.app/Contents/MacOS/bin")
>>>
>>> `/usr/local/bin' isn't in it. I'll add this path into my `.emacs',
>>> thank you.
>>
>> Not a good idea, if you ask me. Your exec-path and PATH outside of
>> Emacs should be in agreement (with the exception of the libexec
>> directory). Otherwise, Emacs will be able to find files that the
>> shell cannot, or vice versa.
>>
>> So I would suggest to figure out why the shell outside Emacs can find
>> what Emacs cannot, and fix whatever causes that, instead of simply
>> adding directories to exec-path.
On OS X, an Emacs session started from GUI will have a different
environment with a shell in terminal. Obviously this will lead to
unexpected results when calling external utilities like `bzr' from
Emacs.
> Sounds like the problem described in and apparently solved by
> https://github.com/purcell/exec-path-from-shell
This library works around this problem by copying environment variables
from the shell, and it works for me. Thank you.
--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/
prev parent reply other threads:[~2013-06-03 23:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-02 1:26 Cannot use `vc-annotate' on OS X Xue Fuqiao
2013-06-02 2:50 ` Eli Zaretskii
2013-06-02 3:05 ` Xue Fuqiao
2013-06-02 15:11 ` Eli Zaretskii
2013-06-02 16:47 ` Dmitry Gutov
2013-06-03 23:00 ` Xue Fuqiao [this message]
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=CAAF+z6FSMFSJoLzwy9Ao8-Y4VxG6j-_Lt5BMf-KWVMeCYxK6PQ@mail.gmail.com \
--to=xfq.free@gmail.com \
--cc=dgutov@yandex.ru \
--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).