aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-05 21:01:02 -0500
committerGlenn Morris2014-03-05 21:01:02 -0500
commitc94e6ee4993d2c8f676d1a46ef6a16796ebd064d (patch)
tree3183c68edc17af6f24d8980175d83bff8296b0d1
parent4da3a85d6c2e9902f5964bff2d5c5ce02b4ba462 (diff)
downloademacs-c94e6ee4993d2c8f676d1a46ef6a16796ebd064d.tar.gz
emacs-c94e6ee4993d2c8f676d1a46ef6a16796ebd064d.zip
* lisp/emacs-lisp/shadow.el (load-path-shadows-find): Ignore dir-locals.
Fixes: debbugs:12357
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/shadow.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0ccc3f7efa1..04af3ca01a5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-03-06 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/shadow.el (load-path-shadows-find):
4 Ignore dir-locals. (Bug#12357)
5
12014-03-05 Glenn Morris <rgm@gnu.org> 62014-03-05 Glenn Morris <rgm@gnu.org>
2 7
3 * files.el (interpreter-mode-alist): 8 * files.el (interpreter-mode-alist):
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index aba929035d1..e8b4eb39576 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -115,7 +115,9 @@ See the documentation for `list-load-path-shadows' for further information."
115 ;; FILE now contains the current file name, with no suffix. 115 ;; FILE now contains the current file name, with no suffix.
116 (unless (or (member file files-seen-this-dir) 116 (unless (or (member file files-seen-this-dir)
117 ;; Ignore these files. 117 ;; Ignore these files.
118 (member file '("subdirs" "leim-list"))) 118 (member file (list "subdirs" "leim-list"
119 (file-name-sans-extension
120 dir-locals-file))))
119 ;; File has not been seen yet in this directory. 121 ;; File has not been seen yet in this directory.
120 ;; This test prevents us declaring that XXX.el shadows 122 ;; This test prevents us declaring that XXX.el shadows
121 ;; XXX.elc (or vice-versa) when they are in the same directory. 123 ;; XXX.elc (or vice-versa) when they are in the same directory.