From cd1c10f6aec7b680f94df42dec61798a57322eac Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 19 Sep 1997 18:15:57 +0000 Subject: [PATCH] (normal-top-level-add-to-load-path): Ignore case when comparing, if ms-dos or windows-nt. --- lisp/startup.el | 9 +++++++-- 1 file 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 () -- 2.39.5