* help-fns.el (describe-variable): Fix case where value is directory-local
authorIngo Lohmar <i.lohmar@gmail.com>
Sat, 8 Feb 2014 02:18:31 +0000 (21:18 -0500)
committerGlenn Morris <rgm@gnu.org>
Sat, 8 Feb 2014 02:18:31 +0000 (21:18 -0500)
with no dir-locals file.

Fixes: debbugs:16635

lisp/ChangeLog
lisp/help-fns.el

index 78c6224..0369e5e 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-08  Ingo Lohmar  <i.lohmar@gmail.com>
+
+       * help-fns.el (describe-variable): Fix the case where
+       a value is directory-local with no dir-locals file.  (Bug#16635)
+
 2014-02-08  Glenn Morris  <rgm@gnu.org>
 
        * abbrev.el (edit-abbrevs-mode):
index 5e38de8..028f6ac 100644 (file)
@@ -930,7 +930,8 @@ if it is given a local binding.\n")))
                                 (setq file (expand-file-name
                                             dir-locals-file (car file)))
                               ;; Otherwise, assume it was set directly.
-                              (setq dir-file nil)))
+                              (setq file (car file)
+                                    dir-file nil)))
                        (princ (if dir-file
                                   "by the file\n  `"
                                 "for the directory\n  `"))