(PACKAGEDIR): New variable.
authormorioka <morioka>
Fri, 11 Sep 1998 23:45:07 +0000 (23:45 +0000)
committermorioka <morioka>
Fri, 11 Sep 1998 23:45:07 +0000 (23:45 +0000)
SEMI-CFG

index d56c948..1136373 100644 (file)
--- a/SEMI-CFG
+++ b/SEMI-CFG
        "tm-plain" "tm-ps"
        "tmdecode"))
 
+(defvar PACKAGEDIR
+  (if (boundp 'early-packages)
+      (let ((dirs (append (if early-package-load-path
+                             early-packages)
+                         (if late-package-load-path
+                             late-packages)
+                         (if last-package-load-path
+                             last-packages)))
+           dir)
+       (while (not (file-exists-p
+                    (setq dir (car dirs))))
+         (setq dirs (cdr dirs)))
+       dir)))
+
 ;;; SEMI-CFG ends here