From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed? Date: 29 Mar 2008 15:03:29 GMT Message-ID: References: <8763v6ku97.fsf@lion.rapttech.com.au> Reply-To: ellenophilos@yahoo.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206830617 10262 80.91.229.12 (29 Mar 2008 22:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 22:43:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 23:44:08 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfjmS-0008Ld-6J for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 23:44:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfjlq-0003gS-Lq for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 18:43:30 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net n+d8oS90niLCpp8hSrYqdgMj0iHkHb0TjABpFxeOpTDwrStyNL Cancel-Lock: sha1:GVyc3f77MPRoENyEubHsTNi1mto= User-Agent: slrn/0.9.8.1 (FreeBSD) Original-Xref: shelby.stanford.edu gnu.emacs.help:157422 X-Mailman-Approved-At: Sat, 29 Mar 2008 18:43:13 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52802 Archived-At: Peter Dyballa wrote: > > Am 29.03.2008 um 05:51 schrieb Tim X: >> The way the OP wants to call the script is how Tcl and other scripting >> languages recommend doing it. This avoids having to hard code the tcl >> path in the script > > This could be achieved the way it's done with Perl scripts > > : > eval 'exec perl -w -S $0 ${1+"$@"}' There's no need introduce eval - the lines #\ exec tclsh "$0" ${1+"$@"} serve to invoke tclsh. > The first line allows to use > > # -*- perl -*- > > or > > # -*- tcl -*- > > to evoke the proper mood in GNU Emacs ... Yes, of course - but the fact remains that it shouldn't be necessary to do this, and in fact it wasn't under Emacs 21. -- Will