From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: simple useful functions Date: Fri, 29 Oct 2010 14:23:32 -0700 Message-ID: <93F6244CF8EE4BDF8F32222AB486E40C@us.oracle.com> References: <20101028.115615.04128253.Takaaki.Ota@am.sony.com><87k4l1r7k5.fsf@uwakimon.sk.tsukuba.ac.jp><20101029.111346.113803171.Takaaki.Ota@am.sony.com><0A81F397D65C44D0804AF87B424D207C@us.oracle.com><662F7C43C13D40309F9D72E311E77293@us.oracle.com> <8BD762AA-A497-4D61-9A1B-7F75BC221541@mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288387537 8723 80.91.229.12 (29 Oct 2010 21:25:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 21:25:37 +0000 (UTC) Cc: 'Tak Ota' To: "'Chad Brown'" , "'Emacs Developers'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 29 23:25:35 2010 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 1PBwS7-0000P2-GT for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 23:25:35 +0200 Original-Received: from localhost ([127.0.0.1]:43165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBwS6-0004GM-IP for ged-emacs-devel@m.gmane.org; Fri, 29 Oct 2010 17:25:34 -0400 Original-Received: from [140.186.70.92] (port=45325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBwRz-0004G2-9C for emacs-devel@gnu.org; Fri, 29 Oct 2010 17:25:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBwRy-000122-3y for emacs-devel@gnu.org; Fri, 29 Oct 2010 17:25:27 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:18524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBwRx-00011y-Tx for emacs-devel@gnu.org; Fri, 29 Oct 2010 17:25:26 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9TLPLs0017275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Oct 2010 21:25:22 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9THRHLY027944; Fri, 29 Oct 2010 21:25:20 GMT Original-Received: from abhmt008.oracle.com by acsmt355.oracle.com with ESMTP id 732009331288387412; Fri, 29 Oct 2010 14:23:32 -0700 Original-Received: from dradamslap1 (/10.159.237.112) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 29 Oct 2010 14:23:32 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8BD762AA-A497-4D61-9A1B-7F75BC221541@mit.edu> Thread-Index: Act3q9qNZBgh+J7ST2SZcdK478ZbQQAA1+vA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132181 Archived-At: > If the function doesn't want to detect the shell (ideally, > parsing the interpreter from the shebang line... The Emacs function `source' in question is passed an optional SHELL argument. If nil, then the value of option `shell-file-name' is used. That's why I suggested acting conditionally based on this SHELL arg.