From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
To: emacs-pretest-bug@gnu.org
Subject: bug#4006: 23.1.50; safe-local-variable-values
Date: Sat, 1 Aug 2009 22:41:30 +0200 [thread overview]
Message-ID: <49615A1A-5616-41E2-9345-04DDD663CA2E@Freenet.DE> (raw)
Hello!
My customisation contains since some days also an entry for an ispell
dictionary (before it consisted of (AUC)TeX-command-default names):
'(safe-local-variable-values (quote ((ispell-dictionary .
"english") (TeX-command-default . "XeLaTeX") (TeX-command-default .
"XeTeX") (TeX-command-default . "XeLaTeXx") (TeX-command-default .
"XeTeXx"))))
It was added by GNU Emacs by pressing ! to answer this question:
The local variables list in Beispiel.tex
contains values that may not be safe (*).
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 permanently mark these
values (*) as safe (in the future, they will be set
automatically.)
* ispell-dictionary : "english"
mode : latex
TeX-master : t
TeX-command-default : "XeLaTeXx"
In the file I have this header:
%%!TEX TS-program=xelatex -*- mode: LaTeX; coding: utf-8; ispell-
dictionary: "english"; -*-
%%!TEX encoding=UTF-8 Unicode
%
% Time-stamp: <2009-07-28 12:42:50>
%
In a second file have this local variables block:
\end{document}
%
%%% Local Variables:
%%% mode: LaTeX
%%% fill-column: 99999
%%% coding: utf-8-unix
%%% ispell-dictionary: "english"
%%% End:
%
%%
Actually I have pressed now many times ! and (ispell-dictionary .
"english") is only once recorded! (Which is good!) When I open any of
the LaTeX files after I have pressed y or n and check with C-h v I get:
safe-local-variable-values is a variable defined in `files.el'.
Its value is
((TeX-command-default . "XeLaTeX")
(TeX-command-default . "XeTeX")
(TeX-command-default . "XeLaTeXx")
(TeX-command-default . "XeTeXx"))
This variable is ignored when used as a file local variable.
This variable is potentially risky when used as a file local
variable.
Documentation:
List variable-value pairs that are considered safe.
Each element is a cons cell (VAR . VAL), where VAR is a variable
symbol and VAL is a value that is considered safe.
You can customize this variable.
[back]
After having pressed ! I get at least:
safe-local-variable-values is a variable defined in `files.el'.
Its value is
((ispell-dictionary . "english")
(TeX-command-default . "XeLaTeX")
(TeX-command-default . "XeTeX")
(TeX-command-default . "XeLaTeXx")
(TeX-command-default . "XeTeXx"))
and it works when I open the next LaTeX file. When I quit GNU Emacs I
see that is writing into my init file. But it never uses this
particular setting (the TeX-command-default's work fine).
I used Emacs.app for my test because it's a few hours younger and
because I'll need to test a patch for an improved handling of native
(Mac OS X) CJK input methods (not yet applied). The X client version
acts exactly the same.
In GNU Emacs 23.1.50.1 (powerpc-apple-darwin8.11.0, NS apple-
appkit-824.48)
of 2009-08-01 on Latsche.local
Windowing system distributor `Apple', version 10.3.824
configured using `configure '--without-sound' '--without-pop' '--
with-dbus' '--with-libotf' '--with-ns' '--disable-ns-self-contained'
'--enable-locallisppath=/Library/Application Support/Emacs/
calendar23:/Library/Application Support/Emacs' 'PKG_CONFIG_PATH=/sw/
lib/freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/pkgconfig:/sw/
lib/fontconfig2/lib/pkgconfig:/sw/lib/qt4-x11/lib/pkgconfig:/sw/lib/
xft2/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/sw/lib/pkgconfig:/sw/
share/pkgconfig:/usr/lib/pkgconfig:/sw/lib/system-openssl/lib/
pkgconfig:/sw/lib/fontforge/pkgconfig:/sw/lib/gcc4.2/lib/pkgconfig:/
usr/local/clamXav/lib/pkgconfig' 'CPPFLAGS=-no-cpp-precomp' 'CFLAGS=-
ggdb3 -gfull -mtraceback=full -Wno-pointer-sign -H -pipe -fPIC -
mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-
register-move -freorder-blocks -fthread-jumps -fpeephole -fno-
crossjumping' 'LDFLAGS=-dead_strip -multiply_defined suppress''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: de_DE.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: de_DE.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Dired by name
Minor modes in effect:
auto-revert-mode: t
TeX-PDF-mode: t
shell-dirtrack-mode: t
diff-auto-refine-mode: t
tabbar-mwheel-mode: t
tabbar-mode: t
show-paren-mode: t
display-time-mode: t
desktop-save-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
--
Greetings
Pete
When people run around and around in circles we say they are crazy.
When planets do it we say they are orbiting.
next reply other threads:[~2009-08-01 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 20:41 Peter Dyballa [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-09 19:12 bug#4006: 23.1.50; safe-local-variable-values Chong Yidong
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49615A1A-5616-41E2-9345-04DDD663CA2E@Freenet.DE \
--to=peter_dyballa@freenet.de \
--cc=4006@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).