From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Setting shell type in sh-mode Date: Thu, 17 Oct 2002 15:41:34 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DAF2E8E.9000101@ihs.com> References: <3DAEEC95.5030107@ihs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1034957835 23911 80.91.224.249 (18 Oct 2002 16:17:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 16:17:15 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182Zo6-0006Be-00 for ; Fri, 18 Oct 2002 18:17:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182ZkT-0007lA-00; Fri, 18 Oct 2002 12:13:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1034890884 23476279 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:106156 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2693 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2693 Glenn Morris wrote: > Kevin Rodgers wrote: > > >>I thought the syntax had to be >> >># -*- mode: sh-mode; sh-shell-file: "/usr/bin/tcsh"; -*- >> > > Yes, I used to think that too, but then I read this in the info node "Local > Variables in Files": > > _If `mode' is used to set a major mode, it should be the first > "variable" in the list._ > > This implies to me (though not very clearly), that the "mode" statement is > optional, but if present it must go at the front. > > Anyway, I can confirm that sh-shell-file is set to the "tcsh" value whether > or not I put the "mode" keyword in; but it happens after the mode setup and > so has no effect. What happens if you set sh-shell to the `tcsh' symbol there, instead of (or in addition to) setting sh-shell-file to the "/usr/bin/tcsh" string? -- Kevin Rodgers