diff -Naur emacs-22.1-lunar/lisp/files.el emacs-22.1/lisp/files.el
--- emacs-22.1-lunar/lisp/files.el	2007-05-25 14:43:31.000000000 +0200
+++ emacs-22.1/lisp/files.el	2007-11-14 10:38:56.000000000 +0100
@@ -2736,8 +2736,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.
