all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: File local variable name containing ':'
Date: Fri, 03 Sep 2010 10:35:35 -0400	[thread overview]
Message-ID: <87lj7ihp3c.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <jwvzkvz2ja4.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 03 Sep 2010 12:53:21 +0200")

Stefan Monnier <monnier@IRO.UMontreal.CA> 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	other threads:[~2010-09-03 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 23:56 File local variable name containing ':' Dan Davison
2010-09-03  7:57 ` Andreas Schwab
2010-09-03 10:53 ` Stefan Monnier
2010-09-03 14:35   ` Dan Davison [this message]
2010-09-03 21:27     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lj7ihp3c.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.