help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: File local variable name containing colon?


From: Pascal J. Bourguignon
Subject: Re: File local variable name containing colon?
Date: Wed, 08 Dec 2010 15:26:18 -0000
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux)

Dan Davison <davison@stats.ox.ac.uk> writes:

> Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>
>> Dan Davison wrote:
>>> This is valid elisp:
>>>
>>> (setq var:name 'value)
>>>
>>> But this doesn't work because the colon causes confusion:
>>>
>>> # Local Variables:
>>> # var:name: value
>>> # End:
>>>
>>> Any way round this?
>>
>> I would try this:
>>
>> # Local Variables:
>> # var\:name: value
>> # End:
>
> Hi Kevin,
>
> Yes, I did try that before posting. But it results in
>
> File local-variables error: (end-of-file)
>
> I also tried surrounding in double quotes "var:name", which results in
> the same error.


# Local Variables:
# eval: (setq var:name value)
# End:

should do...

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


reply via email to

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