(PACKAGEDIR): Avoid an error with Emacs.
authoryamaoka <yamaoka>
Wed, 13 Dec 2006 01:31:45 +0000 (01:31 +0000)
committeryamaoka <yamaoka>
Wed, 13 Dec 2006 01:31:45 +0000 (01:31 +0000)
ChangeLog
MU-CFG

index f2e3b28..b486690 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-13  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * MU-CFG (PACKAGEDIR): Avoid an error with Emacs.
+
 2006-12-12  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * MU-MK (compile-mu-package): Use batch-update-directory-autoloads
diff --git a/MU-CFG b/MU-CFG
index 92d9b06..37edae6 100644 (file)
--- a/MU-CFG
+++ b/MU-CFG
@@ -98,7 +98,8 @@
                        (listp configure-package-path))
                   (delete "" configure-package-path))))
        dir)
-    (while (not (file-exists-p (setq dir (car dirs))))
+    (while (and (setq dir (car dirs))
+               (not (file-exists-p dir)))
       (setq dirs (cdr dirs)))
     dir))