From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed? Date: Sat, 29 Mar 2008 10:48:24 +0100 Message-ID: <9489D8C7-AFB0-458D-B36B-491329A2E554@Web.DE> References: <8763v6ku97.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206784140 7842 80.91.229.12 (29 Mar 2008 09:49:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 09:49:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 10:49:31 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 1JfXgm-0002po-Sb for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 10:49:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfXgA-0004sd-PQ for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 05:48:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfXfs-0004sI-BR for help-gnu-emacs@gnu.org; Sat, 29 Mar 2008 05:48:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfXfq-0004rk-HS for help-gnu-emacs@gnu.org; Sat, 29 Mar 2008 05:48:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfXfq-0004rh-EA for help-gnu-emacs@gnu.org; Sat, 29 Mar 2008 05:48:30 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfXfp-00080s-Tq for help-gnu-emacs@gnu.org; Sat, 29 Mar 2008 05:48:30 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 84F8AD91CFEA; Sat, 29 Mar 2008 10:48:26 +0100 (CET) Original-Received: from [195.4.205.174] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JfXfm-0002AD-00; Sat, 29 Mar 2008 10:48:26 +0100 In-Reply-To: <8763v6ku97.fsf@lion.rapttech.com.au> X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19HlUj25O65uUc0L3caJB8/JIxis2HQCcOoi0qe xY2ia7TooBCTlVrdbl3CTxj5GO+xt0T2kJF6gQe47qFtlLbTW+ +RIrDb4y95WtxgTuGCLw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:52788 Archived-At: 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+"$@"}' The first line allows to use # -*- perl -*- or # -*- tcl -*- to evoke the proper mood in GNU Emacs ... -- Greetings Pete Upgraded, adj.: Didn't work the first time.