From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.devel Subject: Re: File local variable name containing ':' Date: Fri, 03 Sep 2010 10:35:35 -0400 Message-ID: <87lj7ihp3c.fsf@stats.ox.ac.uk> 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 1283525032 2580 80.91.229.12 (3 Sep 2010 14:43:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 14:43:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 03 16:43:51 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 1OrXUb-0006Mm-RB for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 16:43:50 +0200 Original-Received: from localhost ([127.0.0.1]:39134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrXUa-0001rD-Ms for ged-emacs-devel@m.gmane.org; Fri, 03 Sep 2010 10:43:48 -0400 Original-Received: from [140.186.70.92] (port=33365 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrXMl-0007su-Eh for emacs-devel@gnu.org; Fri, 03 Sep 2010 10:35:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrXMk-00037U-6l for emacs-devel@gnu.org; Fri, 03 Sep 2010 10:35:43 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:42305) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrXMj-00036r-Vr for emacs-devel@gnu.org; Fri, 03 Sep 2010 10:35:42 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id o83EZcBp023357; Fri, 3 Sep 2010 15:35:39 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id B4BAA2035B; Fri, 3 Sep 2010 15:35:38 +0100 (BST) In-Reply-To: (Stefan Monnier's message of "Fri, 03 Sep 2010 12:53:21 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-Mailman-Approved-At: Fri, 03 Sep 2010 10:43:44 -0400 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:129649 Archived-At: Stefan Monnier writes: >> 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. Fair enough. What about requiring that the separating colon is followed by whitespace. Is the backwards incompatibility cost too high there? Or could colons in the variable name be escaped with a backslash? Dan > > > Stefan