aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-28 18:15:32 +0000
committerRichard M. Stallman2002-03-28 18:15:32 +0000
commit8ab4da6cc028d2a7a2b39273626a3f9c86bcd0b1 (patch)
tree135c2482c6e1ad95c5150aa2dc28eee033e73f17
parent1d7208e663e3339164942c4e5417fb75e350e8a4 (diff)
downloademacs-8ab4da6cc028d2a7a2b39273626a3f9c86bcd0b1.tar.gz
emacs-8ab4da6cc028d2a7a2b39273626a3f9c86bcd0b1.zip
(list-load-path-shadows): Only ignore last copy of standard Lisp
directories.
-rw-r--r--lisp/emacs-lisp/shadow.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index 4d7477cb69e..0a7b435267c 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -214,10 +214,10 @@ buffer called `*Shadows*'. Shadowings are located by calling the
214 (setq tem (cdr tem))) 214 (setq tem (cdr tem)))
215 (if (> (length toplevs) 1) 215 (if (> (length toplevs) 1)
216 ;; Cut off our copy of load-path right before 216 ;; Cut off our copy of load-path right before
217 ;; the second directory which has simple.el in it. 217 ;; the last directory which has simple.el in it.
218 ;; This avoids loads of duplications between the source dir 218 ;; This avoids loads of duplications between the source dir
219 ;; and the dir where these files were copied by installation. 219 ;; and the dir where these files were copied by installation.
220 (let ((break (nth (- (length toplevs) 2) toplevs))) 220 (let ((break (car toplevs)))
221 (setq tem path) 221 (setq tem path)
222 (while tem 222 (while tem
223 (if (eq (nth 1 tem) break) 223 (if (eq (nth 1 tem) break)