help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can priority of interpreter-mode-alist over auto-mode-alist be chang


From: Lennart Borgman (gmail)
Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?
Date: Fri, 28 Mar 2008 18:03:04 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Will Parsons wrote:
Lowell Gilbert wrote:
Peter Dyballa <Peter_Dyballa@Web.DE> 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?

Did you look at the documentation?

  (info "(emacs) Choosing Modes")

It this clear? Can you do what you want?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]