[Top][All Lists]
[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.
- Re: Add file-locals and dir-locals, (continued)
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/18
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/18
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/19
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/19
- Re: Add file-locals and dir-locals, Leo, 2009/07/20
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/21
- Re: Add file-locals and dir-locals, Leo, 2009/07/21
- Re: Add file-locals and dir-locals, David Kastrup, 2009/07/17
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!,
Chong Yidong <=
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Stephen J. Turnbull, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Lennart Borgman, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, tomas, 2009/07/13
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Giorgos Keramidas, 2009/07/12
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Alan Mackenzie, 2009/07/13
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Chong Yidong, 2009/07/13