From xemacs-m  Sat Feb 15 02:40:24 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA00738
	for <xemacs-beta@xemacs.org>; Sat, 15 Feb 1997 02:40:21 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id AAA24126;
	Sat, 15 Feb 1997 00:51:45 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: sh-mode won't choose correct interpreter automatically
References: <rxsu3nppsr4.fsf@midnight.ecf.teradyne.com>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Adrian Aichner's message of 06 Feb 1997 21:46:39 +0100
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 15 Feb 1997 00:51:38 -0800
Message-ID: <m2zpx6wixx.fsf@altair.xemacs.org>
Lines: 32
X-Mailer: Gnus v5.4.12/XEmacs 20.1

Adrian Aichner writes:

> Hello sh-mode Supporters, Users,

> It is not possible to enter a file with a magic number and
> have sh-mode choose the correct type of shell from that magic number.

> The variable sh-shell-file will determine the type of shell to be
> used always.

> When switching to the shell of choice via
> M-x sh-set-shell 
> or
> C-c :
> font-lock-mode will be nuked by resetting font-lock-keywords, etc.

Yup.

> The correct shell syntax is now available but without font-lock
> support.

> Re-entering the file won't help, since sh-shell-file will determine
> the type of shell, not the file's magic number. End Of Story.

> Any help in sight?
> Any obvious mis-understanding on my part?

It looks like an incompatibility between the Emacsen.  I think I've
got this fixed in 19.15-b94 and 20.1-b1.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

