emacs-devel
[Top][All Lists]
Advanced

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

Re: Blunderbuss ".dir-locals.el" raises everything in its path!!


From: Stefan Monnier
Subject: Re: Blunderbuss ".dir-locals.el" raises everything in its path!!
Date: Thu, 16 Jul 2009 09:53:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

> The patch below adds this information to the output of `C-h v'.
> It distinguishes file-local variables from dir-local variables
> by subtracting `file-local-variables-alist' from `dir-local-variables-alist',
> i.e. a file-local variable with its value is a member of only
> `file-local-variables-alist', but a dir-local variable with its value
> is a member of both.

If the variable is set in both, we should be careful to say it's
"file-local" and not "dir-local".

> `dir-local-variables-alist' is a new function refactored from
> `hack-dir-local-variables'.  It seems it should not be a variable
> since it is required now only for documentation purposes.

The problem with that is that if the dir-local.el file changes between
the time you open the file and the C-h v, you'll get incorrect results.


        Stefan




reply via email to

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