From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1541: marked as done (23.0.60; Emacs don't see $PATH) Date: Thu, 11 Dec 2008 23:40:04 -0800 Message-ID: References: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1229067604-7477-0" X-Trace: ger.gmane.org 1229067887 24474 80.91.229.12 (12 Dec 2008 07:44:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2008 07:44:47 +0000 (UTC) To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 08:45:53 2008 Return-path: Envelope-to: geb-bug-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 1LB2id-0007QE-7x for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2008 08:45:51 +0100 Original-Received: from localhost ([127.0.0.1]:36862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LB2hR-0006ED-7x for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Dec 2008 02:44:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LB2hM-0006E8-Qe for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 02:44:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LB2hL-0006Dr-OA for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 02:44:32 -0500 Original-Received: from [199.232.76.173] (port=49997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LB2hL-0006Do-J6 for bug-gnu-emacs@gnu.org; Fri, 12 Dec 2008 02:44:31 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:20838) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LB2hH-0005Cx-Pk; Fri, 12 Dec 2008 02:44:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LB2hG-0001JH-Gp; Fri, 12 Dec 2008 02:44:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBC7iIUP008731; Thu, 11 Dec 2008 23:44:18 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBC7e4Kn007592; Thu, 11 Dec 2008 23:40:04 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1541 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: notabug X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23230 Archived-At: This is a multi-part message in MIME format... ------------=_1229067604-7477-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 12 Dec 2008 02:33:38 -0500 with message-id and subject line Re: bug#1541: 23.0.60; Emacs don't see $PATH has caused the Emacs bug report #1541, regarding 23.0.60; Emacs don't see $PATH to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1541: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1541 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1229067604-7477-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 103; hammy, 151; neutral, 129; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--UD:el X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY,WWWRU autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Dec 2008 22:55:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBMtafT023441 for ; Thu, 11 Dec 2008 14:55:37 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47004) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LAuQr-0002kI-T1 for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:54:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LAuRS-0006v2-BU for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:35 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:44032) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAuRR-0006uI-MV for emacs-pretest-bug@gnu.org; Thu, 11 Dec 2008 17:55:34 -0500 Received: by fg-out-1718.google.com with SMTP id l26so662235fgb.30 for ; Thu, 11 Dec 2008 14:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=V33yombTWIcYvoShN532+So38/cPK7snzVYeWUfeAbU=; b=dFhFZhTG7+12pZIICbhCoLyXj1doOUUiiMEwdHRCOcnDKoM/QyrjEQHxNLJvtA5k66 tpvfd+jz9M1Z1XBRok51hAuoci8nVZMokmoj0Ey1Q61sSOa0Ux05dSLlWKFvfdF1RhI1 AtqTf9jwA5eGidZUivJIwn8RVKhWPWMzGaNsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=no9I6u05fdd5Ldo21S13AdkbrVqzTkh6Xdew/tg9RKddY+aAhrdgnac3fYCvY3kcr+ HgtxBCTvuvno1v6tVGZk+OR6O/K/5b7wfBhayXkJUa8NTeFCrHr4ZdXpgboENOz9oS5P Eloe8yWvEERjNp7wWUY7bR4PqOQpjijPaijBk= Received: by 10.103.131.18 with SMTP id i18mr1605644mun.120.1229036128699; Thu, 11 Dec 2008 14:55:28 -0800 (PST) Received: from ?10.21.32.19? ([213.87.80.144]) by mx.google.com with ESMTPS id t10sm1564322muh.31.2008.12.11.14.55.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 14:55:28 -0800 (PST) Message-Id: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> From: Dmitry Galinsky To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: 23.0.60; Emacs don't see $PATH Date: Fri, 12 Dec 2008 01:54:51 +0300 X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Emacs don't see $PATH environment variable. Step to reproduce bug: (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) (getenv "PATH") ;; => "/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" (shell-command-to-string "which git") ;; > /opt/local/bin/git (git-status) ;; produced the error backtrace: Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "git") call-process("git" nil t nil "rev-parse" "--show-cdup") In GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS apple-appkit-949.35) of 2008-12-10 on neutron.local Windowing system distributor `Apple', version 97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.51.53 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ru_RU.UTF8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t yas/minor-mode: t recentf-mode: t show-paren-mode: t global-auto-revert-mode: t delete-selection-mode: t pc-selection-mode: t tooltip-mode: t ns-extended-platform-support-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: Recent messages: Mark set Entering debugger... git version 1.6.0.5 Mark set Wrote /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Making completion list... line-move-visual: End of buffer Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el Quit [2 times] Open /Users/dima/.emacs.d/rails-reloaded/rails-resources.el -- Best regards, Dmitry Galinsky http://dima-exe.ru ------------=_1229067604-7477-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 43; hammy, 70; neutral, 51; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23060, 0.000-+--23.0.60, 0.000-+--Emacs, 0.000-+--H*M:fsf X-Spam-Status: No, score=-10.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,STOCKLIKE,SUBJMONEY,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1541-done) by emacsbugs.donarmstrong.com; 12 Dec 2008 07:34:21 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBC7YIks006070 for <1541-done@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 23:34:20 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LB2Wo-0006Ck-Jg; Fri, 12 Dec 2008 02:33:38 -0500 From: Glenn Morris To: 1541-done@emacsbugs.donarmstrong.com Subject: Re: bug#1541: 23.0.60; Emacs don't see $PATH References: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> X-Spook: M-14 BCCI Roswell Vickie Weaver Becker Albania Semtex X-Ran: t/yp#3pD@h2~?`><(fT85wQ~aTx5lOo?6x\B[wU}`+(p6~-|D.(riocWB}#>1>]`3#>}aH X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 12 Dec 2008 02:33:38 -0500 In-Reply-To: <3EF395A3-9A7A-42E7-B084-C65474AF2DE6@gmail.com> (Dmitry Galinsky's message of "Fri, 12 Dec 2008 01:54:51 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Dmitry Galinsky wrote: > (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) > (shell-command-to-string "which git") ;; > /opt/local/bin/git > "No such file or directory" "git") > call-process("git" nil t nil "rev-parse" "--show-cdup") It doesn't work like that. call-process uses the Lisp variable exec-path, which is set at startup based on the value of $PATH. So you should be adding /opt/local/bin to exec-path, or to PATH before you start Emacs. Changing PATH after Emacs has started will not affect call-process and similar things. (There may be a separate issue with --with-ns and environment, bug#1333.) ------------=_1229067604-7477-0--