[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add file-locals and dir-locals
From: |
David Kastrup |
Subject: |
Re: Add file-locals and dir-locals |
Date: |
Fri, 17 Jul 2009 17:48:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
>> (The thing that irritates me about dir-locals is their syntactic
>> incompatiblity with file-locals. If I want to promote a file local
>> I've been setting on a bunch of files to directory local, AFAIK I need to
>> rejig the syntax.)
>
> It is possible to blur the difference between formats of file-locals and
> dir-locals with the help of new commands. The file etc/TODO has the
> following entry:
>
> ** Add a command to make a "Local Variables" section in the current buffer
> and/or add a variable to the list.
>
> Below is an initial version of two commands that will close this TODO
> entry.
Wouldn't it be easier if any file variables in the .dir-locals file
would count as dir-local? Then copying them around would be much more
natural. Obvious disadvantages:
a) if different line prefixes are used in different files, when
combining them, one has to massage them.
b) file-locals for the .dir-locals.el file are not feasible.
--
David Kastrup
- Add file-locals and dir-locals (was: Blunderbuss ".dir-locals.el" raises everything in its path!!), (continued)
- Add file-locals and dir-locals (was: Blunderbuss ".dir-locals.el" raises everything in its path!!), Juri Linkov, 2009/07/16
- Re: Add file-locals and dir-locals, martin rudalics, 2009/07/17
- 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 <=
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/07/17
- Re: Blunderbuss ".dir-locals.el" raises everything in its path!!, Chong Yidong, 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!!, 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