From 2eff1bc783be812044b70b2ff4afc9c441dcc9e9 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Wed, 13 Dec 2006 01:31:45 +0000 Subject: [PATCH] (PACKAGEDIR): Avoid an error with Emacs. --- ChangeLog | 4 ++++ MU-CFG | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f2e3b28..b486690 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-12-13 Katsumi Yamaoka + + * MU-CFG (PACKAGEDIR): Avoid an error with Emacs. + 2006-12-12 Katsumi Yamaoka * MU-MK (compile-mu-package): Use batch-update-directory-autoloads diff --git a/MU-CFG b/MU-CFG index 92d9b06..37edae6 100644 --- 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)) -- 1.7.10.4