From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: Cannot use `vc-annotate' on OS X Date: Tue, 4 Jun 2013 07:00:54 +0800 Message-ID: References: <83txlhz0mv.fsf@gnu.org> <83sj10zgwp.fsf@gnu.org> <8738t0foic.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1370300470 32599 80.91.229.3 (3 Jun 2013 23:01:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 23:01:10 +0000 (UTC) Cc: help-gnu-emacs To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 04 01:01:12 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UjdkV-0006WL-3s for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jun 2013 01:01:11 +0200 Original-Received: from localhost ([::1]:56274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjdkU-0005aO-QP for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 19:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjdkJ-0005aJ-Mj for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 19:01:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjdkH-0006v6-QN for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 19:00:59 -0400 Original-Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:44104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjdkF-0006uf-HT; Mon, 03 Jun 2013 19:00:55 -0400 Original-Received: by mail-ie0-f173.google.com with SMTP id k13so12223189iea.32 for ; Mon, 03 Jun 2013 16:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=iOgjYKF2d50/sORTcrrLOvvsq7UIYU0En0Q5jrWw8RQ=; b=scnCj5ZbuAlOW28RepEyB+EiEx8Z2tOCaa8ODN7ZnIzBFyrQXTvJTIGNLWST6qlgG8 /PWHh/7IsALskPiT7KJIkp1awQ2vg03o6rbeqHUbiaZ+NstWPDP9kmAvKRne76r3N2eC Y4V5/VQZlJzfd/GdOn1JzkIWQE9YNqzD/3sbpewJ6/ibaf8EoF7z/uRDwHB5La1gcwXg HvBMRcjD7U0a71MOLeC2ZtVEPwWf0n+5Uvof2DJYZSFSYVn56GXMrjvd2H+BXuLyx9b/ Dna1NJn9vpsXdOpdK8kQMvqVUlYl1/WmzLVdvfUlEbqi07mlxVO834jzr0j4bAK204Qm WPww== X-Received: by 10.50.30.233 with SMTP id v9mr218395igh.3.1370300454331; Mon, 03 Jun 2013 16:00:54 -0700 (PDT) Original-Received: by 10.42.121.138 with HTTP; Mon, 3 Jun 2013 16:00:54 -0700 (PDT) In-Reply-To: <8738t0foic.fsf@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91275 Archived-At: Hi Dmitry and Eli, On Mon, Jun 3, 2013 at 12:47 AM, Dmitry Gutov wrote: > Eli Zaretskii writes: > >>> Date: Sun, 2 Jun 2013 11:05:05 +0800 >>> From: Xue Fuqiao >>> Cc: help-gnu-emacs >>> >>> `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/