Commit dfb308ba authored by Michael Albinus's avatar Michael Albinus
Browse files

* files.el (enable-remote-dir-locals): New option.

(hack-dir-local-variables): Use it.  (Bug#1933, Bug#6731)
parent c5cfcbe0
2012-06-06 Michael Albinus <>
* files.el (enable-remote-dir-locals): New option.
(hack-dir-local-variables): Use it. (Bug#1933, Bug#6731)
2012-06-06 Glenn Morris <>
* vc/vc-rcs.el (vc-rcs-rcs2log-program): New.
......@@ -3668,12 +3668,20 @@ is found. Returns the new class name."
(error (message "Error reading dir-locals: %S" err) nil)))))
(defcustom enable-remote-dir-locals nil
"Non-nil means dir-local variables will be applied to remote files."
:version "24.2"
:type 'boolean
:group 'find-file)
(defun hack-dir-local-variables ()
"Read per-directory local variables for the current buffer.
Store the directory-local variables in `dir-local-variables-alist'
and `file-local-variables-alist', without applying them."
(when (and enable-local-variables
(not (file-remote-p (or (buffer-file-name) default-directory))))
(or enable-remote-dir-locals
(not (file-remote-p (or (buffer-file-name)
;; Find the variables file.
(let ((variables-file (dir-locals-find-file
(or (buffer-file-name) default-directory)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment