unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* `list-load-path-shadows' ignores more directories than it should
@ 2002-03-25 22:38 Michael Ernst
  0 siblings, 0 replies; only message in thread
From: Michael Ernst @ 2002-03-25 22:38 UTC (permalink / raw)


In Emacs 21.2, list-load-path-shadows cuts off the search at the second
directory containing "simple.el".  I believe it should cut off at the last
directory containing "simple.el", the better to detect conflicts arising
from having multiple versions of lisp/ (for instance, from two different
Emacs installations) in one's path.  The below path accomplishes this.
Alternately, one could check that all versions of simple.el that are being
cut off are identical.

ChangeLog entry:

2002-03-25  Michael Ernst  <mernst@alum.mit.edu>

	* emacs-lisp/shadow.el (list-load-path-shadows): Only ignore last
	copy of "simple.el", etc.


*** /g2/users/mernst/tmp/emacs-21.2/lisp/emacs-lisp/shadow.el	Mon Jul 16 08:22:59 2001
--- -	Sat Mar 23 21:41:02 2002
***************
*** 215,222 ****
      (if (> (length toplevs) 1)
  	;; Cut off our copy of load-path right before
! 	;; the second directory which has simple.el in it.
  	;; This avoids loads of duplications between the source dir
  	;; and the dir where these files were copied by installation.
! 	(let ((break (nth (- (length toplevs) 2) toplevs)))
  	  (setq tem path)
  	  (while tem
--- 215,222 ----
      (if (> (length toplevs) 1)
  	;; Cut off our copy of load-path right before
! 	;; the last directory that has simple.el in it.
  	;; This avoids loads of duplications between the source dir
  	;; and the dir where these files were copied by installation.
! 	(let ((break (car toplevs)))
  	  (setq tem path)
  	  (while tem

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-25 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-25 22:38 `list-load-path-shadows' ignores more directories than it should Michael Ernst

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).