summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-19 18:15:57 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-19 18:15:57 +0000
commitcd1c10f6aec7b680f94df42dec61798a57322eac (patch)
tree59e02bba039249a4ffc067c6c4b0f150294de650
parent9af275a32ef9244d578ddf17291b16f318c9929f (diff)
downloademacs-cd1c10f6aec7b680f94df42dec61798a57322eac.tar.gz
(normal-top-level-add-to-load-path):
Ignore case when comparing, if ms-dos or windows-nt.
-rw-r--r--lisp/startup.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 1093defa0ed..a1a824ae3da 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -334,8 +334,13 @@ from being initialized."
;; This function is called from the subdirs.el file.
(defun normal-top-level-add-to-load-path (dirs)
- (let ((tail (or (member (directory-file-name default-directory) load-path)
- (member default-directory load-path))))
+ (let ((tail load-path)
+ (thisdir (directory-file-name default-directory)))
+ (while (and tail
+ (not (equal thisdir (car tail)))
+ (not (and (memq system-type '(ms-dos windows-nt))
+ (equal (downcase thisdir) (downcase (car tail))))))
+ (setq tail (cdr tail)))
(setcdr tail (append (mapcar 'expand-file-name dirs) (cdr tail)))))
(defun normal-top-level ()