[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add file-locals and dir-locals
From: |
Juri Linkov |
Subject: |
Re: Add file-locals and dir-locals |
Date: |
Thu, 06 Aug 2009 00:52:41 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
>> As not frequently used commands, it's not difficult for the user to
>> select the necessary command using completions for M-x:
>>
>> M-x add-file-local-variable RET
>> M-x add-file-local-variable-prop-line RET
>> M-x add-dir-local-variable RET
>>
>> Please try these commands and tell what do you think.
>
> I have tried these commands briefly and they seem to work fine.
>
> For the first two commands, if they are called interactively, do you
> think the file variables should be evaled after being added?
Interesting question. Formally speaking, evaluating them seems right to
keep local variables consistent with real values in the current buffer.
But such evaluation requires also executing all safety mechanisms that
also may ask a question whether a variable is safe.
Since there is no such associated burden while adding local variables
manually I don't think this is the right thing to do when adding them
automatically.
--
Juri Linkov
http://www.jurta.org/emacs/
Re: Add file-locals and dir-locals, Dan Nicolaescu, 2009/08/08
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/08/08
- Re: Add file-locals and dir-locals, Stefan Monnier, 2009/08/08
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/08/08
- Re: Add file-locals and dir-locals, Leo, 2009/08/08
- Re: Add file-locals and dir-locals, Juri Linkov, 2009/08/08
- RE: Add file-locals and dir-locals, Drew Adams, 2009/08/08