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: Chong Yidong
Subject: Re: Blunderbuss ".dir-locals.el" raises everything in its path!!
Date: Sun, 12 Jul 2009 14:37:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (gnu/linux)

Alan Mackenzie <address@hidden> writes:

>> I'm not sure I understand.  Directory-local variables are processed
>> right before file-local variables, and can be overridden by them.
>
> Sorry, yes.  But that's the only thing they can be overridden by.  That
> is surely not the right thing.
>
> Why on earth does .dir-locals.el take precedence over values set in a
> top-level `setq' or `c-mode-hook'?  This is surely the Wrong Thing to
> do.

Because setting a directory-local variable is supposed to have the same
effect as setting a file-local variable inside every file in that
directory.  Thus, instead of putting c-fill-style inside every .c file
in the Emacs source tree, you can simply write a .dir-locals.el file.

> In particular, the File Style and local variables settings are rarely
> used precision instruments, for configuring unusual files unusually.

This indicates that we should not set c-file-style in the .dir-locals.el
file of the Emacs source tree.




reply via email to

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