[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: |
Will Parsons |
Subject: |
Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed? |
Date: |
29 Mar 2008 15:03:29 GMT |
User-agent: |
slrn/0.9.8.1 (FreeBSD) |
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
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, (continued)
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Peter Dyballa, 2008/03/28
- Message not available
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lowell Gilbert, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Will Parsons, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lennart Borgman (gmail), 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Peter Dyballa, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lowell Gilbert, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Will Parsons, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Kevin Rodgers, 2008/03/29
Message not available