diff options
| author | Richard M. Stallman | 1997-09-19 18:15:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-19 18:15:57 +0000 |
| commit | cd1c10f6aec7b680f94df42dec61798a57322eac (patch) | |
| tree | 59e02bba039249a4ffc067c6c4b0f150294de650 | |
| parent | 9af275a32ef9244d578ddf17291b16f318c9929f (diff) | |
| download | emacs-cd1c10f6aec7b680f94df42dec61798a57322eac.tar.gz emacs-cd1c10f6aec7b680f94df42dec61798a57322eac.zip | |
(normal-top-level-add-to-load-path):
Ignore case when comparing, if ms-dos or windows-nt.
| -rw-r--r-- | lisp/startup.el | 9 |
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." | |||
| 334 | 334 | ||
| 335 | ;; This function is called from the subdirs.el file. | 335 | ;; This function is called from the subdirs.el file. |
| 336 | (defun normal-top-level-add-to-load-path (dirs) | 336 | (defun normal-top-level-add-to-load-path (dirs) |
| 337 | (let ((tail (or (member (directory-file-name default-directory) load-path) | 337 | (let ((tail load-path) |
| 338 | (member default-directory load-path)))) | 338 | (thisdir (directory-file-name default-directory))) |
| 339 | (while (and tail | ||
| 340 | (not (equal thisdir (car tail))) | ||
| 341 | (not (and (memq system-type '(ms-dos windows-nt)) | ||
| 342 | (equal (downcase thisdir) (downcase (car tail)))))) | ||
| 343 | (setq tail (cdr tail))) | ||
| 339 | (setcdr tail (append (mapcar 'expand-file-name dirs) (cdr tail))))) | 344 | (setcdr tail (append (mapcar 'expand-file-name dirs) (cdr tail))))) |
| 340 | 345 | ||
| 341 | (defun normal-top-level () | 346 | (defun normal-top-level () |