From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: Re: exec-path and PATH Date: Sat, 19 Mar 2011 10:36:44 -0600 Message-ID: <86ei63hxsz.fsf@gmail.com> References: <86ipvfiyp0.fsf@gmail.com> <83vczfr0o0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300552633 25131 80.91.229.12 (19 Mar 2011 16:37:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 16:37:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 17:37:08 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0z9H-0004aL-1Q for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 17:37:07 +0100 Original-Received: from localhost ([127.0.0.1]:58905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0z9B-0001tv-E9 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2011 12:37:01 -0400 Original-Received: from [140.186.70.92] (port=49172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0z96-0001tb-QD for emacs-devel@gnu.org; Sat, 19 Mar 2011 12:36:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0z95-0001Kv-Lq for emacs-devel@gnu.org; Sat, 19 Mar 2011 12:36:56 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:47343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0z94-0001Jv-8C; Sat, 19 Mar 2011 12:36:54 -0400 Original-Received: by iyf13 with SMTP id 13so6279956iyf.0 for ; Sat, 19 Mar 2011 09:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=AP5xr1aLcBBBCwKJD3Omz1xmIkbRRwRkMxWrWHtUEXk=; b=dMcJ6tPdWWoH6v0RJpgh6FFR7p0V13f7kzoUwSWLST5mRaa4NRf6jqc+YIp248LQ0P mGj84zhi5LnzOFcdf6LKjYe4fIOf1k2stT7kp0qrbe9yKw7vTV9q29kLsEp0JMAJLLJE lBfgKjm2oM0jwKUvrHCfw7iFFqAmilkDT3jOg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=GbsxqlLfXZCBChXcyvXu2OaQL/DvBDqtASzCllZDVr1Ik7GHEMjJVxei0cegJ82B4K SpDD/6Eo7mfhbMXDTzytShBaeXeTuMYXKqxSZKiDS6PZss0QN4Xp4jk/ewu1s8TcA57v PolCdQ1OAtbzMWFGtltx/5ujEUIc82HXB7YNw= Original-Received: by 10.42.159.68 with SMTP id k4mr3752917icx.27.1300552613205; Sat, 19 Mar 2011 09:36:53 -0700 (PDT) Original-Received: from localhost (71-208-187-99.hlrn.qwest.net [71.208.187.99]) by mx.google.com with ESMTPS id xi12sm2660098icb.18.2011.03.19.09.36.51 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Mar 2011 09:36:52 -0700 (PDT) In-Reply-To: <83vczfr0o0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Mar 2011 10:10:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137423 Archived-At: Eli Zaretskii writes: > Maybe we should consider the possibility to automatically set PATH > from exec-path each time Emacs invokes a subprocess, because this > issue comes up time and again in gnu.emacs.help. This would be helpful, I think. Can we set PATH to exec-path for the duration of the shell execution? IIRC, if you change the PATH in a cmd session it only applies to that session. Is it possible to something similar here? >> Maybe this is a silly question, but why are some of the programs invoked >> different than others? > > Because the shell has features ready for our use that would be a > wasted effort to re-implement in Lisp or C. E.g., complex > redirection, pipes, etc. That makes sense. Thanks. >> PS: Here is a small docfix patch for process.c for review: > > This is obviously correct, so please commit it on the emacs-23 > branch. OK. > "PATH" is a literal name of an environment variable, that's why it is > in caps. But `exec-path' is spelled in lower case, so please don't > up-case it here. Also, please enclose in quotes, so it produces a > link in Emacs. I would even say > > > It is searched for in `exec-path' (which see). > > Thanks. OK, I will change it. Thanks, Christoph