From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: sh-script.el and magic numbers Date: Tue, 21 Jan 2003 10:04:47 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301211604.KAA19180@eel.dms.auburn.edu> References: <200301190324.VAA14671@eel.dms.auburn.edu> <200301191247.h0JCl1Zs020036@beta.mvs.co.il> <8del78n1ks.fsf@ast.cam.ac.uk> <200301200759.h0K7xGOH007624@beta.mvs.co.il> <200301210045.SAA16966@eel.dms.auburn.edu> <388yxeu69x.fsf@ast.cam.ac.uk> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043167022 13736 80.91.224.249 (21 Jan 2003 16:37:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 16:37:02 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18b1OW-0003Z8-00 for ; Tue, 21 Jan 2003 17:37:00 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18b1Zx-0004N6-00 for ; Tue, 21 Jan 2003 17:48:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b1Ek-0000zG-02 for emacs-devel@quimby.gnus.org; Tue, 21 Jan 2003 11:26:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18b1A1-0007tr-00 for emacs-devel@gnu.org; Tue, 21 Jan 2003 11:22:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18b0xN-0004Hg-00 for emacs-devel@gnu.org; Tue, 21 Jan 2003 11:08:58 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b0sj-0003Dn-00 for emacs-devel@gnu.org; Tue, 21 Jan 2003 11:04:09 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id KAA03638; Tue, 21 Jan 2003 10:04:07 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id KAA19180; Tue, 21 Jan 2003 10:04:47 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: gmorris+mail@ast.cam.ac.uk In-reply-to: (message from Glenn Morris on Tue, 21 Jan 2003 15:44:41 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10939 Glenn Morris wrote: No, I mean what was said in the thread I referred to, namely: # -*- mode: sh; sh-shell: csh; mode-line-process: "[csh]"-*- which works without the need for enabling eval of local variables. But it's a little ugly, and doesn't work right, since it still prints "indentation set up for shell type bash". I'd prefer just a single variable that controls what shell flavour a file is. and: and doesn't work right, since it still prints "indentation set up for shell type bash". The problem is not just that it prints that, worse: it is actually true. Do C-c C-c. Answer "a" or whatever to all questions. You now indeed get switch. But, look at the indentation. Then use my mode line. Do the same thing over. Does the indentation not look a lot better? While the solution you describe does not involve eval, it still involves a hook local variable. Sincerely, Luc.