GNU bug report logs - #17333
sh-mode: File local variables for setting shell variant

Previous Next

Package: emacs;

Reported by: Ben Finney <ben+gnu <at> benfinney.id.au>

Date: Thu, 24 Apr 2014 00:59:03 UTC

Severity: normal

Tags: confirmed

Found in version 24.3.1

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 17333 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Ben Finney <ben+gnu <at> benfinney.id.au>
Cc: 17333 <at> debbugs.gnu.org
Subject: Re: bug#17333: sh-mode: File local variables for setting shell variant
Date: Tue, 29 Apr 2014 10:21:23 -0400
Ben Finney wrote:

> 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?); or sh-mode could add something to
hack-local-variables-hook that respects a file-local `sh-buffer-shell'
or somesuch.




This bug report was last modified 10 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.