|
From: | Chong Yidong |
Subject: | Re: Clarification on using safe-local-variable-values |
Date: | Wed, 08 Mar 2006 19:03:44 -0500 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Andrew M. Scott" <address@hidden> writes: > % mv .mailrc .mailrc.bak > % echo "# Local Variables:" >! .mailrc > % echo "# after-save-hook: ((lambda () (build-mail-aliases)))" >> .mailrc > % echo "# End:" >> .mailrc > > % cat .mailrc > # Local Variables: > # after-save-hook: ((lambda () (build-mail-aliases))) > # End: > > % emacs .mailrc and answer the prompt with "!" > > C-h v safe-local-variable-values returns nil > > safe-local-variable-values is a variable defined in `files.el'. > Its value is nil > ^^^^ this is wrong That is working as intended. Emacs does not save after-save-hook because that is a risky local variable, and those are never saved. We should probably avoid offering to save when the only local variables in the list are risky ones; I will implement that.
[Prev in Thread] | Current Thread | [Next in Thread] |