* lisp/initz-util.el (initz-add-to-load-path): Expand `path' before
authorbg66 <bg66>
Sun, 1 Sep 2002 09:41:19 +0000 (09:41 +0000)
committerbg66 <bg66>
Sun, 1 Sep 2002 09:41:19 +0000 (09:41 +0000)
adding to `load-path'.

ChangeLog
lisp/initz-util.el

index f7282ef..2c474a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-01  OHASHI Akira  <bg66@koka-in.org>
+
+       * lisp/initz-util.el (initz-add-to-load-path): Expand `path' before
+       adding to `load-path'.
+
 2002-05-17  OHASHI Akira  <bg66@koka-in.org>
 
        * README (Development): Fix typo.
index 71f85ac..66c0bda 100644 (file)
   "Add PATHS to `load-path' recursively."
   (let ((paths (if (listp paths) paths (list paths))))
     (mapc #'(lambda (path)
-             (when (file-directory-p path)
-               (add-to-list 'load-path path)
-               (initz-add-to-load-path
-                ;; Without `.' and `..'.
-                (directory-files
-                 path t "^\\([^.].+\\|\\.[^.].+\\|\\.\\..+\\)$"))))
+             (let ((path (expand-file-name path)))
+               (when (file-directory-p path)
+                 (add-to-list 'load-path path)
+                 (initz-add-to-load-path
+                  ;; Without `.' and `..'.
+                  (directory-files
+                   path t "^\\([^.].+\\|\\.[^.].+\\|\\.\\..+\\)$")))))
          paths)))
 
 (defun initz-features ()