From unknown Sat Aug 16 21:12:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4006 <4006@debbugs.gnu.org> To: bug#4006 <4006@debbugs.gnu.org> Subject: Status: 23.1.50; safe-local-variable-values Reply-To: bug#4006 <4006@debbugs.gnu.org> Date: Sun, 17 Aug 2025 04:12:35 +0000 retitle 4006 23.1.50; safe-local-variable-values reassign 4006 emacs submitter 4006 Peter Dyballa severity 4006 normal thanks From Peter_Dyballa@Freenet.DE Sat Aug 1 13:41:53 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Aug 2009 20:41:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <49615A1A-5616-41E2-9345-04DDD663CA2E@Freenet.DE> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: emacs-pretest-bug@gnu.org From: Peter Dyballa Subject: 23.1.50; safe-local-variable-values Date: Sat, 1 Aug 2009 22:41:30 +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) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 14:12:30 2010 Received: (at 4006) by debbugs.gnu.org; 9 Jan 2010 19:12:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgje-000327-H5 for submit@debbugs.gnu.org; Sat, 09 Jan 2010 14:12:30 -0500 Received: from pantheon-po42.its.yale.edu ([130.132.50.101]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgjc-000322-U4 for 4006@debbugs.gnu.org; Sat, 09 Jan 2010 14:12:29 -0500 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po42.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o09JCO4Z001660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 9 Jan 2010 14:12:24 -0500 Received: by furry (Postfix, from userid 1000) id B100AC05D; Sat, 9 Jan 2010 12:12:23 -0700 (MST) From: Chong Yidong To: Peter Dyballa Subject: Re: 23.1.50; safe-local-variable-values Date: Sat, 09 Jan 2010 14:12:23 -0500 Message-ID: <87r5pzay94.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 4006 Cc: 4006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) > My customisation contains since some days also an entry for an ispell > dictionary (before it consisted of (AUC)TeX-command-default names). > 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" >From "Specifying File Variables" in the Emacs manual: If `mode' is used to set a major mode, it should be the first "variable" in the list. Otherwise, the entries that precede it will usually have no effect, since most major modes kill all local variables as part of their initialization. That the problem you're seeing. There is another bug entry in that database about adding a warning for this kind of situation (Bug#5239). From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 14:12:45 2010 Received: (at control) by debbugs.gnu.org; 9 Jan 2010 19:12:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgjt-00032L-Np for submit@debbugs.gnu.org; Sat, 09 Jan 2010 14:12:45 -0500 Received: from pantheon-po42.its.yale.edu ([130.132.50.101]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgjs-00032F-4F for control@debbugs.gnu.org; Sat, 09 Jan 2010 14:12:44 -0500 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po42.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o09JCdWS001686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 9 Jan 2010 14:12:39 -0500 Received: by furry (Postfix, from userid 1000) id 5B6E4C05D; Sat, 9 Jan 2010 12:12:39 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 4006 Date: Sat, 09 Jan 2010 14:12:39 -0500 Message-ID: <87ocl3ay8o.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) close 4006 thanks From unknown Sat Aug 16 21:12:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator