From xemacs-m  Thu Feb  6 14:47:17 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA19929
	for <xemacs-beta@xemacs.org>; Thu, 6 Feb 1997 14:47:16 -0600 (CST)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id PAA26133 for <xemacs-beta@xemacs.org>; Thu, 6 Feb 1997 15:50:24 -0500 (EST)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id VAA29639; Thu, 6 Feb 1997 21:46:40 +0100 (MET)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id VAA05300; Thu, 6 Feb 1997 21:46:40 +0100
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: sh-mode won't choose correct interpreter automatically
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 06 Feb 1997 21:46:39 +0100
Message-ID: <rxsu3nppsr4.fsf@midnight.ecf.teradyne.com>
Lines: 33
X-Mailer: Red Gnus v0.84/XEmacs 20.0


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.

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?

Good Night,

Adrian

-- 
  Teradyne GmbH               Adrian Aichner Applications Engineer
  Semiconductor Test Group    Telephone      +49/89/418 61 (0)-208
  Dingolfinger Strasse 2      Fax            +49/89/418 61-217
  D-81673 M"UNCHEN            E-mail         aichner@ecf.teradyne.com

