unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Will Parsons <oudeis@nodomain.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?
Date: 29 Mar 2008 15:03:29 GMT	[thread overview]
Message-ID: <slrnfusmi1.lem.oudeis@isis.thalatta.eme> (raw)
In-Reply-To: mailman.9566.1206784114.18990.help-gnu-emacs@gnu.org

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


      parent reply	other threads:[~2008-03-29 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27 12:42 Can priority of interpreter-mode-alist over auto-mode-alist be changed? skuhagen
2008-03-28 11:13 ` Peter Dyballa
     [not found] ` <mailman.9538.1206702847.18990.help-gnu-emacs@gnu.org>
2008-03-28 15:20   ` Lowell Gilbert
2008-03-28 15:37     ` Will Parsons
2008-03-28 17:03       ` Lennart Borgman (gmail)
2008-03-28 18:24       ` Peter Dyballa
2008-03-28 19:22       ` Lowell Gilbert
2008-03-28 21:34         ` Will Parsons
2008-03-29 15:24           ` Kevin Rodgers
2008-03-29  4:51   ` Tim X
2008-03-29  9:48     ` Peter Dyballa
     [not found]     ` <mailman.9566.1206784114.18990.help-gnu-emacs@gnu.org>
2008-03-29 15:03       ` Will Parsons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnfusmi1.lem.oudeis@isis.thalatta.eme \
    --to=oudeis@nodomain.invalid \
    --cc=ellenophilos@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).