From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: exec path Date: Fri, 23 Aug 2013 20:45:24 +0300 Message-ID: <83a9k8i9mz.fsf@gnu.org> References: <52147A10.1030406@t-online.de> <146ACADC-9BC8-429E-A3EE-58D7705768F8@Web.DE> <5215CB94.6070600@t-online.de> <28CED4B0-6E3E-47DD-98DD-121A2C10D614@Web.DE> <52164631.3040109@t-online.de> <521669BB.1010400@easy-emacs.de> <2169388f-497b-494d-ba58-5e2bc4738b78@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1377279955 13082 80.91.229.3 (23 Aug 2013 17:45:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 17:45:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 23 19:45:57 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 1VCvQq-0000ij-Rl for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Aug 2013 19:45:56 +0200 Original-Received: from localhost ([::1]:38058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCvQq-0002cF-Gl for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Aug 2013 13:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCvQP-0002bH-Nc for help-gnu-emacs@gnu.org; Fri, 23 Aug 2013 13:45:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCvQI-0006GW-5c for help-gnu-emacs@gnu.org; Fri, 23 Aug 2013 13:45:29 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:59754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCvQH-0006G3-Tk for help-gnu-emacs@gnu.org; Fri, 23 Aug 2013 13:45:22 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MRZ00500VOIGK00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 23 Aug 2013 20:45:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRZ005LLVZJGQ10@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 23 Aug 2013 20:45:20 +0300 (IDT) In-reply-to: <2169388f-497b-494d-ba58-5e2bc4738b78@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:93064 Archived-At: > Date: Fri, 23 Aug 2013 09:57:52 -0700 (PDT) > From: Rami A > Injection-Date: Fri, 23 Aug 2013 16:57:53 +0000 > > I am in the same boat. > I have exec-path including the bin directory I have my scripts in but then doing: > M-x compile then echo $PATH I don't see that directory. > Trying to start any of the scripts by doing M-x compile then "script_name" will prompt emacs to recognize the command. > I also tried adding to $PATH from my .emscs file but that did not work as well. > So this did not work: > (setenv "PATH" (concat (getenv "PATH") ":" (expand-file-name "~/mybin"))) > (setq exec-path (append exec-path (list (expand-file-name "~/mybin"))) > > Any pointers? Set up your PATH outside Emacs to include that "bin directory you have your scripts in", and Bob's your uncle. Having exec-path and PATH different is asking for trouble, because some Emacs commands go through the shell (which looks at PATH), while others invoke programs directly using exec-path. If you care about your sanity, don't ever let these two be out of sync.