aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-08 21:32:50 +0000
committerRichard M. Stallman1997-08-08 21:32:50 +0000
commit5017dcaa27e1770a49f25126e8ff54c5f3e12ca0 (patch)
treea0e724bde0e6aba188656e69b3c08651fe408af7
parent9c5886e7ee51b9283762a7b5681c19fa3c28fb92 (diff)
downloademacs-5017dcaa27e1770a49f25126e8ff54c5f3e12ca0.tar.gz
emacs-5017dcaa27e1770a49f25126e8ff54c5f3e12ca0.zip
(find-emacs-lisp-shadows): Don't mention `subdirs.el'.
(list-load-path-shadows): When noninteractive, if there are shadows, start with a message explaining what this is a problem.
-rw-r--r--lisp/emacs-lisp/shadow.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index 73650de88c8..7e49c8b6f17 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -106,10 +106,10 @@ See the documentation for `list-load-path-shadows' for further information."
106 (setq file (substring 106 (setq file (substring
107 file 0 (if (string= (substring file -1) "c") -4 -3))) 107 file 0 (if (string= (substring file -1) "c") -4 -3)))
108 108
109 ;; 'file' now contains the current file name, with no suffix. 109 ;; FILE now contains the current file name, with no suffix.
110 (if (member file files-seen-this-dir) 110 (unless (or (member file files-seen-this-dir)
111 nil 111 ;; Ignore these files.
112 112 (member file '("subdirs")))
113 ;; File has not been seen yet in this directory. 113 ;; File has not been seen yet in this directory.
114 ;; This test prevents us declaring that XXX.el shadows 114 ;; This test prevents us declaring that XXX.el shadows
115 ;; XXX.elc (or vice-versa) when they are in the same directory. 115 ;; XXX.elc (or vice-versa) when they are in the same directory.
@@ -134,7 +134,6 @@ See the documentation for `list-load-path-shadows' for further information."
134 134
135;;;###autoload 135;;;###autoload
136(defun list-load-path-shadows () 136(defun list-load-path-shadows ()
137
138 "Display a list of Emacs Lisp files that shadow other files. 137 "Display a list of Emacs Lisp files that shadow other files.
139 138
140This function lists potential load-path problems. Directories in the 139This function lists potential load-path problems. Directories in the
@@ -193,6 +192,11 @@ buffer called `*Shadows*'. Shadowings are located by calling the
193 (setq shadows (cdr (cdr shadows)))) 192 (setq shadows (cdr (cdr shadows))))
194 (insert msg "\n"))) 193 (insert msg "\n")))
195 ;; We are non-interactive, print shadows via message. 194 ;; We are non-interactive, print shadows via message.
195 (when shadows
196 (message "This site has duplicate Lisp libraries with the same name.
197If a locally-installed Lisp library overrides a library in the Emacs release,
198that can cause trouble, and you should probably remove the locally-installed
199version unless you know what you are doing.\n"))
196 (while shadows 200 (while shadows
197 (message "%s hides %s" (car shadows) (car (cdr shadows))) 201 (message "%s hides %s" (car shadows) (car (cdr shadows)))
198 (setq shadows (cdr (cdr shadows)))) 202 (setq shadows (cdr (cdr shadows))))