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 not changed in autostart Date: Fri, 19 Dec 2014 23:46:10 +0200 Message-ID: <83oaqzs47x.fsf@gnu.org> References: <30a3109d-f2c6-4001-a761-8322133b4892@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419025611 14604 80.91.229.3 (19 Dec 2014 21:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 21:46:51 +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 Dec 19 22:46:44 2014 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 1Y25Ni-0006pH-1E for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 22:46:42 +0100 Original-Received: from localhost ([::1]:60646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25Ng-0003cx-QW for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 16:46:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25NN-0003ck-Gk for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y25NF-0006bJ-FL for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:21 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25NF-0006b6-7M for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:13 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NGU00B00ME6KC00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 23:46:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGU00BX1N4ZKQ20@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 23:46:11 +0200 (IST) In-reply-to: <30a3109d-f2c6-4001-a761-8322133b4892@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.166 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:101686 Archived-At: > Date: Fri, 19 Dec 2014 13:09:19 -0800 (PST) > From: Xin Jin > Injection-Date: Fri, 19 Dec 2014 21:09:20 +0000 > > I use the following code to add the paths from the shell environment to exec-path: > > (setq exec-path > (append > (split-string-and-unquote (getenv "PATH") ":") > exec-path)) Why do you need that? exec-path already includes the directories from $PATH, so the above sounds redundant.