emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File local variable name containing ':'


From: Dan Davison
Subject: Re: File local variable name containing ':'
Date: Fri, 03 Sep 2010 10:35:35 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]