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: 28 Mar 2008 15:37:16 GMT Organization: Westinghouse Electric Company Message-ID: <654hlcF2emjjuU1@mid.individual.net> References: <44iqz6ooyl.fsf@be-well.ilk.org> Reply-To: william.b.parsons@us.westinghouse.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206720626 24918 80.91.229.12 (28 Mar 2008 16:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 16:10:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 17:10:57 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 1JfHA0-0004Lr-V0 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2008 17:10:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfH9P-0003Dn-G1 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2008 12:09:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: individual.net twxQ8fADa2XezSCrwcdW4AoR6VuteLYuQANfNjgyTju756iOB7 Cancel-Lock: sha1:jQWz3ZtQRj09KuILTpjLV2D8zxA= User-Agent: slrn/0.9.8.1 (FreeBSD) Original-Xref: shelby.stanford.edu gnu.emacs.help:157398 X-Mailman-Approved-At: Fri, 28 Mar 2008 12:07:15 -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:52769 Archived-At: Lowell Gilbert wrote: > Peter Dyballa writes: > >> Am 27.03.2008 um 13:42 schrieb skuhagen: >>> #!/bin/sh >>> #\ >>> exec tclsh "$0" "$@" >> >> Why can't you use >> >> #!/bin/tclsh >> >> directly? > > In some cases, because the script has to be run on multiple machines > that have different paths to tclsh. > I've used "Local Variables" sections to solve that in the past. > I wouldn't be surprised if there is a better way these days. This seems to be a regression with Emacs 22. I, too, have tcl scripts which begin with the common Tcl idiom cited by the OP, and they are correctly recognized as tcl mode in Emacs 21 but shell mode in Emacs 22. So, I'd like to join the OP in asking how to get the original behaviour back? -- Will