From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4006: 23.1.50; safe-local-variable-values Date: Sat, 1 Aug 2009 22:41:30 +0200 Message-ID: <49615A1A-5616-41E2-9345-04DDD663CA2E@Freenet.DE> Reply-To: Peter Dyballa , 4006@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249160828 22822 80.91.229.12 (1 Aug 2009 21:07:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2009 21:07:08 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 23:07:01 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXLn9-0008Kn-OG for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2009 23:07:00 +0200 Original-Received: from localhost ([127.0.0.1]:55713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXLn9-0001th-3M for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2009 17:06:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXLn4-0001tY-08 for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2009 17:06:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXLmy-0001sy-SN for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2009 17:06:53 -0400 Original-Received: from [199.232.76.173] (port=44894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXLmy-0001sv-NK for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2009 17:06:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32832) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXLmx-0006UL-Ur for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2009 17:06:48 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n71L6jtm006968; Sat, 1 Aug 2009 14:06:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n71Ko5nd004518; Sat, 1 Aug 2009 13:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 01 Aug 2009 20:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4006 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12491593133875 (code B ref -1); Sat, 01 Aug 2009 20:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 1 Aug 2009 20:41:53 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n71KflkP003870 for ; Sat, 1 Aug 2009 13:41:49 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:56742 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MXLOl-0005wd-0N for emacs-pretest-bug@gnu.org; Sat, 01 Aug 2009 16:41:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MXLOg-0003L2-RU for emacs-pretest-bug@gnu.org; Sat, 01 Aug 2009 16:41:46 -0400 Original-Received: from mout3.freenet.de ([195.4.92.93]:39335) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXLOg-0003KO-8r for emacs-pretest-bug@gnu.org; Sat, 01 Aug 2009 16:41:42 -0400 Original-Received: from [195.4.92.16] (helo=6.mx.freenet.de) by mout3.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #92) id 1MXLOc-00062D-Bc for emacs-pretest-bug@gnu.org; Sat, 01 Aug 2009 22:41:38 +0200 Original-Received: from p5b23c9b2.dip.t-dialin.net ([91.35.201.178]:57778 helo=[192.168.1.2]) by 6.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #93) id 1MXLOb-0000QP-QX for emacs-pretest-bug@gnu.org; Sat, 01 Aug 2009 22:41:38 +0200 X-Mailer: Apple Mail (2.753.1) X-purgate-ID: 149285::1249159298-00003836-84F8E735/0-0/0-0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 01 Aug 2009 17:06:53 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29782 gmane.emacs.pretest.bugs:24903 Archived-At: 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.