Commit dd8e49fd authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/help-fns.el (describe-variable):

Check {file,dir}-local-variables-alist, and buffer-file-name,
in the correct buffer.

This seems to have Just Worked in 24.3 - when and why did it change?
parent 20bc9ac5
2014-02-08 Glenn Morris <>
* help-fns.el (describe-variable):
Check {file,dir}-local-variables-alist, and buffer-file-name,
in the correct buffer.
2014-02-08 Ingo Lohmar <>
* help-fns.el (describe-variable): Fix the case where
......@@ -911,13 +911,18 @@ if it is given a local binding.\n")))
(t ".")))
(when (member (cons variable val) file-local-variables-alist)
(when (member (cons variable val)
(with-current-buffer buffer
(setq extra-line t)
(if (member (cons variable val) dir-local-variables-alist)
(let ((file (and (buffer-file-name)
(not (file-remote-p (buffer-file-name)))
(if (member (cons variable val)
(with-current-buffer buffer
(let ((file (and (buffer-file-name buffer)
(not (file-remote-p
(buffer-file-name buffer)))
(buffer-file-name buffer))))
(dir-file t))
(princ " This variable's value is directory-local")
(if (null file)
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