summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/files-x.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/files-x.el b/lisp/files-x.el
index 5353e54158e..b71e9204f32 100644
--- a/lisp/files-x.el
+++ b/lisp/files-x.el
@@ -31,7 +31,6 @@
;;; Code:
(eval-when-compile (require 'subr-x)) ; for string-trim-right
-(eval-when-compile (require 'cl-lib)) ; for cl-letf
;;; Commands to add/delete file-local/directory-local variables.
@@ -690,7 +689,7 @@ This does nothing if `enable-connection-local-variables' is nil."
;; Push them to `file-local-variables-alist'. Connection-local
;; variables do not appear from external files. So we can regard
;; them as safe.
- (cl-letf (((symbol-function 'safe-local-variable-p) (lambda (_sym _val) t)))
+ (let ((enable-local-variables :all))
(hack-local-variables-filter connection-local-variables-alist nil))))
;;;###autoload