]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/files.el (hack-local-variables): Don't burp when files-x isn't loaded
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 5 May 2019 12:57:04 +0000 (08:57 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 5 May 2019 12:57:04 +0000 (08:57 -0400)
lisp/files.el

index c05d70a00ecb1568d5d3a60f6478310ed0df6f1e..518394fdcd7130a279e7407bc8a8696372f2714c 100644 (file)
@@ -3590,7 +3590,9 @@ local variables, but directory-local variables may still be applied."
        result)
     (unless (eq handle-mode t)
       (setq file-local-variables-alist nil)
-      (when (file-remote-p default-directory)
+      (when (and (file-remote-p default-directory)
+                 (fboundp 'hack-connection-local-variables)
+                 (fboundp 'connection-local-criteria-for-default-directory))
         (with-demoted-errors "Connection-local variables error: %s"
          ;; Note this is a no-op if enable-local-variables is nil.
          (hack-connection-local-variables