From: "Andrew M. Scott" <amscott1@sedona.ch.intel.com>
Cc: amscott1@sedona.ch.intel.com
Subject: Clarification on using safe-local-variable-values
Date: Wed, 8 Mar 2006 12:55:59 -0700 [thread overview]
Message-ID: <200603081955.k28JtxHO009985@chls308.ch.intel.com> (raw)
I'm confused at how to use the new safe-local-variable-values
added on Feb 14, 2006 is supposed to work.
% emacs -Q &
C-x C-f ~/.mailrc, where ~/.mailrc is under RCS control
which has this at the bottom:
# Local Variables:
# after-save-hook: build-mail-aliases
# End:
I get prompted with a *Local Variables* buffer:
The local variables list in .mailrc
contains variables that are risky (**).
Do you want to apply it? You can type
y -- to apply the local variables list
n -- to ignore the local variables list
! -- to apply the local variables list, and mark these values (*) as
safe (in the future, they can be set automatically.)\n\n")
** after-save-hook : build-mail-aliases
and with minibuffer:
Please type y, n, or !:
Q1: Curiously, with my cursor now at the end of the minibuffer line,
Emacs did not respond to C-x o or mouse (I wanted to select the
contents of the *Local Variables* buffer for submission in this
email). Is this intentional?
Q2: Exactly where/how is the result of option "!" stored?
I chose option "!" and visited the ~/.mailrc file.
C-h v safe-local-variable-values still returned nil
yet C-h N addition hints that safe-local-variable-values
should be updated with my change (somewhere?):
At the prompt, the user can choose to save the contents of this local
variables list to `safe-local-variable-values'. This new customizable
option is a list of variable-value pairs that are known to be safe.
Variables can also be marked as safe with the existing
`safe-local-variable' property (see `safe-local-variable-p').
However, risky variables will not be added to
`safe-local-variable-values' in this way.
I also looked and didn't see any update to any ~/.customize* or
~/.emacs.d/* files, or any other file in ~/.
If I kill the ~/.mailrc buffer and revisit it, I get prompted
with the same *Local Variables* buffer scenario as the
first time.
Thanks,
Andy Scott
In GNU Emacs 22.0.50.1 (x86_64-unknown-linux-gnu, X toolkit)
of 2006-03-07 on chls308
X server distributor `The XFree86 Project, Inc', version 11.0.40201000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: C
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
tooltip-mode: t
auto-compression-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
Recent input:
C-x C-f . m a i l r c <return> C-x o <help-echo> <help-echo>
<help-echo> <down-mouse-1> <drag-mouse-1> <down-mouse-1>
<drag-mouse-1> C-x C-c <help-echo> <down-mouse-1> <help-echo>
<drag-mouse-1> <help-echo> <down-mouse-1> <mouse-1>
C-g C-h v s a f e - <tab> <tab> v a <backspace> <backspace>
e v <tab> <return> C-h v s a f e - <tab> <tab> v a
<tab> <return> C-x o C-e C-b C-b C-b C-b <return> C-x
1 C-s ! <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4>
<down-mouse-4> <mouse-4> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>
Recent messages:
Loading pp...done
Type C-x 1 to remove help window.
Making completion list...
Loading find-func...done
Loading jka-compr...done
uncompressing files.el.gz...done
Mark saved where search started
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
next reply other threads:[~2006-03-08 19:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 19:55 Andrew M. Scott [this message]
2006-03-08 20:24 ` Clarification on using safe-local-variable-values 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
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=200603081955.k28JtxHO009985@chls308.ch.intel.com \
--to=amscott1@sedona.ch.intel.com \
/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.