diff options
| author | Eli Zaretskii | 2001-07-22 10:53:30 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-07-22 10:53:30 +0000 |
| commit | 722a451d1ae7ddb86449b20c9e2d6551f08d4f8a (patch) | |
| tree | dde4a56e0575f64c98c29c0e17b860487f5c4b35 | |
| parent | da226c735283ba183e756bb59a4988db4a4ee4fc (diff) | |
| download | emacs-722a451d1ae7ddb86449b20c9e2d6551f08d4f8a.tar.gz emacs-722a451d1ae7ddb86449b20c9e2d6551f08d4f8a.zip | |
(normal-top-level-add-subdirs-to-load-path): On Windows,
put into normal-top-level-add-subdirs-inode-list the
canonicalized names of the directories instead of inode numbers.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/startup.el | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 55ad54cfcdd..e8ab516e36f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-07-22 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * startup.el (normal-top-level-add-subdirs-to-load-path): On | ||
| 4 | Windows, put into normal-top-level-add-subdirs-inode-list the | ||
| 5 | canonicalized names of the directories instead of inode numbers. | ||
| 6 | |||
| 1 | 2001-07-21 Michael Kifer <kifer@cs.sunysb.edu> | 7 | 2001-07-21 Michael Kifer <kifer@cs.sunysb.edu> |
| 2 | 8 | ||
| 3 | * ediff-util.el: Copyright years. | 9 | * ediff-util.el: Copyright years. |
diff --git a/lisp/startup.el b/lisp/startup.el index b5b8089dfa9..6b82b2b7b01 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -352,9 +352,16 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 352 | (while pending | 352 | (while pending |
| 353 | (setq dirs (cons (car pending) dirs)) | 353 | (setq dirs (cons (car pending) dirs)) |
| 354 | (setq pending (cdr pending)) | 354 | (setq pending (cdr pending)) |
| 355 | (setq attrs (nthcdr 10 (file-attributes (car dirs)))) | 355 | (let* ((this-dir (car dirs)) |
| 356 | (let ((contents (directory-files (car dirs))) | 356 | (contents (directory-files this-dir)) |
| 357 | (default-directory (car dirs))) | 357 | (default-directory this-dir) |
| 358 | (canonicalized (and (eq system-type 'windows-nt) | ||
| 359 | (untranslated-canonical-name this-dir)))) | ||
| 360 | ;; The Windows version doesn't report meaningful inode | ||
| 361 | ;; numbers, so use the canonicalized absolute file name of the | ||
| 362 | ;; directory instead. | ||
| 363 | (setq attrs (or canonicalized | ||
| 364 | (nthcdr 10 (file-attributes this-dir)))) | ||
| 358 | (unless (member attrs normal-top-level-add-subdirs-inode-list) | 365 | (unless (member attrs normal-top-level-add-subdirs-inode-list) |
| 359 | (setq normal-top-level-add-subdirs-inode-list | 366 | (setq normal-top-level-add-subdirs-inode-list |
| 360 | (cons attrs normal-top-level-add-subdirs-inode-list)) | 367 | (cons attrs normal-top-level-add-subdirs-inode-list)) |