changeset 79322:bef6cef0e8f4

2007-11-02 Drake Wilson <drake@begriffli.ch> (tiny change) * files.el (hack-local-variables): Fix membership tests to avoid treating all variables as safe if `enable-local-variables' is set to :safe.
author Romain Francoise <romain@orebokech.com>
date Fri, 02 Nov 2007 11:02:13 +0000
parents 316574aa2a9a
children 973c113d9bfe
files lisp/ChangeLog lisp/files.el
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 02 08:19:17 2007 +0000
+++ b/lisp/ChangeLog	Fri Nov 02 11:02:13 2007 +0000
@@ -1,3 +1,9 @@
+2007-11-02  Drake Wilson  <drake@begriffli.ch>  (tiny change)
+
+	* files.el (hack-local-variables): Fix membership tests to avoid
+	treating all variables as safe if `enable-local-variables' is
+	set to :safe.
+
 2007-11-02  Glenn Morris  <rgm@gnu.org>
 
 	* progmodes/etags.el (tags-table-mode): Disable undo.
--- a/lisp/files.el	Fri Nov 02 08:19:17 2007 +0000
+++ b/lisp/files.el	Fri Nov 02 11:02:13 2007 +0000
@@ -2764,8 +2764,8 @@
 		;; If caller wants only the safe variables,
 		;; install only them.
 		(dolist (elt result)
-		  (unless (or (memq (car elt) unsafe-vars)
-			      (memq (car elt) risky-vars))
+		  (unless (or (member elt unsafe-vars)
+			      (member elt risky-vars))
 		    (hack-one-local-variable (car elt) (cdr elt))))
 	      ;; Query, except in the case where all are known safe
 	      ;; if the user wants no quuery in that case.