From xemacs-m  Thu Jul 17 18:34:01 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 SAA25201
	for <xemacs-beta@xemacs.org>; Thu, 17 Jul 1997 18:34:00 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id QAA00682;
	Thu, 17 Jul 1997 16:37:08 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: -*- not terminated bug
References: <rwx4t9tn6sw.fsf@kopernik.npac.syr.edu>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: Steven L Baur <steve@xemacs.org>
In-Reply-To: Remek Trzaska's message of "17 Jul 1997 09:31:59 -0400"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 17 Jul 1997 16:37:07 -0700
Message-ID: <m2iuy9ckt8.fsf@altair.xemacs.org>
Lines: 35
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta14) - "Vienna"

Remek Trzaska <remek@npac.syr.edu> writes:

> #! /usr/npac/bin/bash
> rxvt -rv -fn "-adobe-courier-medium-r-normal-*-14-*" -geometry 80x24 -name `uname -n` 2>/dev/null

 ...

> 1. Shouldn't `-*-' in quotes be ignored?

The code that does the -*- matching is in
`hack-local-variables-prop-line' in files.el if you wish to experiment 
with it.

> 2. Should the second line of the file be parsed for `-*-' at all?

Quoting the aforementioned function:
                   ;; If the file begins with "#!"
                   ;; (un*x exec interpreter magic), look
                   ;; for mode frobs in the first two
                   ;; lines.  You cannot necessarily
                   ;; put them in the first line of
                   ;; such a file without screwing up
                   ;; the interpreter invocation.

In this case, your best bet is probably to put a blank line between the 
#! and the rxvt call.  Another method would be to add superfluous but
legal quotes like:

#! /usr/npac/bin/bash
rxvt -rv -fn "-adobe-courier-medium-r-normal-""*-14-*" -geometry 80x24 -name `uname -n` 2>/dev/null


We have the same kind of restriction on certain files containing left
parens in the left column in comments (blows font-lock out of the
water), so it isn't as if this is a unique case.

