[Top][All Lists]

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

Re: Behaviour of add-file-local-variable?

From: Juri Linkov
Subject: Re: Behaviour of add-file-local-variable?
Date: Wed, 19 Oct 2011 12:39:34 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu)

> Should add-file-local-variable also set the variable immediately rather
> than merely updating the file footer?

While keeping text in the Local Variables section in sync with actual
values looks like the right thing to do, it raises related questions
that are more difficult to decide:

Should `M-x add-file-local-variable RET mode RET' also change current mode?

Should `M-x add-file-local-variable RET coding RET' also change the
current buffer coding?

Should `M-x add-file-local-variable RET eval RET' evaluate the added expression?

Should `delete-file-local-variable' return the previous buffer-local value
or revert to the global value?

Should `add-dir-local-variable' after modifying .dir-locals.el
also update values in all visited file buffers in all subdirectories?

reply via email to

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