From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: File local variable name containing ':' Date: Fri, 03 Sep 2010 12:53:21 +0200 Message-ID: References: <87r5hbzomj.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283511215 6582 80.91.229.12 (3 Sep 2010 10:53:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 10:53:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Davison Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 03 12:53:34 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OrTtl-0006KI-Da for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 12:53:33 +0200 Original-Received: from localhost ([127.0.0.1]:46062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrTtk-0006sa-RD for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 06:53:32 -0400 Original-Received: from [140.186.70.92] (port=51331 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrTtf-0006rE-Mu for emacs-devel@gnu.org; Fri, 03 Sep 2010 06:53:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrTte-0003iG-Hv for emacs-devel@gnu.org; Fri, 03 Sep 2010 06:53:27 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:42632) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrTte-0003i3-AA for emacs-devel@gnu.org; Fri, 03 Sep 2010 06:53:26 -0400 Original-Received: from ceviche.home (vpn-132-204-232-39.acd.umontreal.ca [132.204.232.39]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o83ArMkf009169; Fri, 3 Sep 2010 06:53:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7D86F660DF; Fri, 3 Sep 2010 12:53:21 +0200 (CEST) In-Reply-To: <87r5hbzomj.fsf@stats.ox.ac.uk> (Dan Davison's message of "Thu, 02 Sep 2010 19:56:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3614=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129641 Archived-At: > I think it isn't possible to use a Local Variables line to set the value > of a variable whose name contains a colon . E.g. something like Indeed, it looks like you're right. > Assuming I'm not overlooking an easy workaround, it seems that one > possible fix would be to recognise the separator character on-the-fly as > the character following the word "Variables". That makes the check for the presence of file-local variables even more loose. I.e. a file that contained "Local Variables" but not "Local Variables:" will now be considered as containing file-local variables and will likely generate an error about missing "End" when you try and open the file. The current "Local Variables:" pattern is already much too loose in my opinion, so I'm definitely not going to let it become even more permissive. Stefan