From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: simple useful functions Date: Mon, 6 Dec 2010 13:25:02 -0800 Message-ID: <20101206.132502.318846750.Takaaki.Ota@am.sony.com> References: <20101206.103945.379575954.Takaaki.Ota@am.sony.com> 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 1291670724 16609 80.91.229.12 (6 Dec 2010 21:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 21:25:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 22:25:19 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 1PPiYg-0000Al-Fj for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 22:25:18 +0100 Original-Received: from localhost ([127.0.0.1]:35519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPiYf-0000yG-P8 for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 16:25:17 -0500 Original-Received: from [140.186.70.92] (port=37109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPiYa-0000to-Up for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:25:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPiYZ-0004Cq-QT for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:25:12 -0500 Original-Received: from am1ehsobe003.messaging.microsoft.com ([213.199.154.206]:2149 helo=AM1EHSOBE003.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPiYZ-0004Ch-FY for emacs-devel@gnu.org; Mon, 06 Dec 2010 16:25:11 -0500 Original-Received: from mail28-am1-R.bigfish.com (10.3.201.243) by AM1EHSOBE003.bigfish.com (10.3.204.23) with Microsoft SMTP Server id 14.1.225.8; Mon, 6 Dec 2010 21:25:10 +0000 Original-Received: from mail28-am1 (localhost.localdomain [127.0.0.1]) by mail28-am1-R.bigfish.com (Postfix) with ESMTP id EC7A6D800E6; Mon, 6 Dec 2010 21:25:09 +0000 (UTC) X-SpamScore: -12 X-BigFish: VPS-12(zz1432N98dNzz1202hzzz2fh2a8h668h61h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail7.fw-bc.sony.com; RD:mail7.fw-bc.sony.com; EFVD:NLI Original-Received: from mail28-am1 (localhost.localdomain [127.0.0.1]) by mail28-am1 (MessageSwitch) id 1291670709718285_27489; Mon, 6 Dec 2010 21:25:09 +0000 (UTC) Original-Received: from AM1EHSMHS010.bigfish.com (unknown [10.3.201.241]) by mail28-am1.bigfish.com (Postfix) with ESMTP id A664ACB8052; Mon, 6 Dec 2010 21:25:09 +0000 (UTC) Original-Received: from mail7.fw-bc.sony.com (160.33.98.74) by AM1EHSMHS010.bigfish.com (10.3.207.110) with Microsoft SMTP Server (TLS) id 14.1.225.8; Mon, 6 Dec 2010 21:25:07 +0000 Original-Received: from mail1x.bc.in.sel.sony.com ([43.144.65.112]) by mail7.fw-bc.sony.com (Switch-3.4.2/Switch-3.3.2mp) with ESMTP id oB6LP4gU019823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 6 Dec 2010 21:25:04 GMT Original-Received: from localhost (tak-vaio-z1290-043191017095.am.sony.com [43.191.17.95]) by mail1x.bc.in.sel.sony.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB6LP3Gj022232; Mon, 6 Dec 2010 21:25:03 GMT In-Reply-To: X-Mailer: Mew-6.3.50 on Emacs-23.2.90.1 (i386-mingw-nt6.1.7600 built on 2010-11-22) X-OriginatorOrg: am.sony.com X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) 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:133474 Archived-At: Mon, 6 Dec 2010 12:23:21 -0800: Stefan Monnier wrote: > >> IIUC these scripts are written for /bin/sh, right? How do (t)csh users > >> handle that? > >> [ Sorry, I'm not that familiar with cross-compiling: OpenWRT is about > >> as far as I got into this, and it "takes care of things" in ways > >> I haven't tried to understand. They don't use such setup scripts, at > >> least in a user-visible way (although the user does perform the > >> cross-compiling). ] > > > Those scripts are written for the shell the tool provider intends user > > to use. The shell to use is not always our choice. > > In the case of the scripts you've used, was there some way to > mechanically figure out which shell was intended? I'm thinking that > using shell-file-name is probably not the right choice, and we should > instead default to /bin/sh (which I'd expect to be the most common > case). > > > This is a good point. I am contaminating the whole emacs. It made me > > review compile.el and I learned the existence of > > compilation-environment which I think is more appropriate than > > `setenv' function. > > So only `compile' needs to know about these env-vars? No, the debugger also needs. I don't find similar consideration in gdb-ui.el. Do you have a better suggestion? -Tak