diff options
| author | Glenn Morris | 2014-02-07 21:55:04 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-02-07 21:55:04 -0500 |
| commit | dd8e49fda275d10b7c62c18be022f7d27f67ddb6 (patch) | |
| tree | 44a1330de126e51cfeb8c92b164aaa8bc6309770 | |
| parent | 20bc9ac5eb9930d32902ef5865653d54789e564e (diff) | |
| download | emacs-dd8e49fda275d10b7c62c18be022f7d27f67ddb6.tar.gz emacs-dd8e49fda275d10b7c62c18be022f7d27f67ddb6.zip | |
* 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?
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/help-fns.el | 15 |
2 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0369e5ed075..6890915509f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-02-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * help-fns.el (describe-variable): | ||
| 4 | Check {file,dir}-local-variables-alist, and buffer-file-name, | ||
| 5 | in the correct buffer. | ||
| 6 | |||
| 1 | 2014-02-08 Ingo Lohmar <i.lohmar@gmail.com> | 7 | 2014-02-08 Ingo Lohmar <i.lohmar@gmail.com> |
| 2 | 8 | ||
| 3 | * help-fns.el (describe-variable): Fix the case where | 9 | * help-fns.el (describe-variable): Fix the case where |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 028f6ac0c30..44dcbb955ac 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -911,13 +911,18 @@ if it is given a local binding.\n"))) | |||
| 911 | (t "."))) | 911 | (t "."))) |
| 912 | (terpri)) | 912 | (terpri)) |
| 913 | 913 | ||
| 914 | (when (member (cons variable val) file-local-variables-alist) | 914 | (when (member (cons variable val) |
| 915 | (with-current-buffer buffer | ||
| 916 | file-local-variables-alist)) | ||
| 915 | (setq extra-line t) | 917 | (setq extra-line t) |
| 916 | (if (member (cons variable val) dir-local-variables-alist) | 918 | (if (member (cons variable val) |
| 917 | (let ((file (and (buffer-file-name) | 919 | (with-current-buffer buffer |
| 918 | (not (file-remote-p (buffer-file-name))) | 920 | dir-local-variables-alist)) |
| 921 | (let ((file (and (buffer-file-name buffer) | ||
| 922 | (not (file-remote-p | ||
| 923 | (buffer-file-name buffer))) | ||
| 919 | (dir-locals-find-file | 924 | (dir-locals-find-file |
| 920 | (buffer-file-name)))) | 925 | (buffer-file-name buffer)))) |
| 921 | (dir-file t)) | 926 | (dir-file t)) |
| 922 | (princ " This variable's value is directory-local") | 927 | (princ " This variable's value is directory-local") |
| 923 | (if (null file) | 928 | (if (null file) |