From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Glenn Morris <rgm@gnu.org>
Cc: Ben Finney <ben+gnu@benfinney.id.au>, 17333@debbugs.gnu.org
Subject: bug#17333: sh-mode: File local variables for setting shell variant
Date: Tue, 29 Apr 2014 11:40:22 -0400 [thread overview]
Message-ID: <jwvlhuotaex.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <1kr44gkyho.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 29 Apr 2014 10:21:23 -0400")
>> The 'sh-mode' appears to have no means for allowing a non-executable
>> file to declare, in its local variables, the shell variant to use for
>> syntax.
> I'd also like a way to do this.
> In the past I've used
> -*- mode: sh; eval: (sh-set-shell "tcsh" nil nil) -*-
> but it is not great.
> Ideas that come to mind are a bunch of aliases (sh-bash-mode etc) that
> DTRT (yuck?);
Actually I think having sh-csh-mode, sh-sh-mode, and sh-rc-mode would be
a good idea.
> or sh-mode could add something to hack-local-variables-hook that
> respects a file-local `sh-buffer-shell' or somesuch.
The var's name is `sh-shell', and I guess this could make sense for the
"fine tuning" (e.g. distinguish between csh and tcsh), tho I'm not sure
it's worth the trouble.
Stefan
next prev parent reply other threads:[~2014-04-29 15:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 0:40 bug#17333: sh-mode: File local variables for setting shell variant Ben Finney
2014-04-29 14:21 ` Glenn Morris
2014-04-29 15:40 ` Stefan Monnier [this message]
2014-04-30 1:17 ` Ben Finney
2014-05-22 20:42 ` Glenn Morris
2014-04-30 1:01 ` Ben Finney
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=jwvlhuotaex.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=17333@debbugs.gnu.org \
--cc=ben+gnu@benfinney.id.au \
--cc=rgm@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).