From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Clarification on using safe-local-variable-values
Date: Wed, 08 Mar 2006 19:03:44 -0500 [thread overview]
Message-ID: <87zmk05vrz.fsf@stupidchicken.com> (raw)
In-Reply-To: <17423.28072.2696.723424@chls308.ch.intel.com> (Andrew M. Scott's message of "Wed, 8 Mar 2006 16:50:00 -0700")
"Andrew M. Scott" <amscott1@sedona.ch.intel.com> 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.
next prev parent reply other threads:[~2006-03-09 0:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 19:55 Clarification on using safe-local-variable-values Andrew M. Scott
2006-03-08 20:24 ` Chong Yidong
2006-03-08 20:43 ` Andrew M. Scott
2006-03-08 21:52 ` Chong Yidong
2006-03-08 23:50 ` Andrew M. Scott
2006-03-09 0:03 ` Chong Yidong [this message]
2006-03-09 8:39 ` Kim F. Storm
2006-03-09 14:50 ` Chong Yidong
2006-03-10 23:57 ` Luc Teirlinck
2006-03-11 15:46 ` Richard Stallman
2006-03-11 23:47 ` Kim F. Storm
2006-03-09 17:14 ` Richard Stallman
2006-03-09 17:14 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zmk05vrz.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.