* riece-addon.el (riece-resolve-addons): Check the existence of
authorueno <ueno>
Mon, 7 Feb 2005 03:51:07 +0000 (03:51 +0000)
committerueno <ueno>
Mon, 7 Feb 2005 03:51:07 +0000 (03:51 +0000)
riece-addon-directory.

lisp/ChangeLog
lisp/riece-addon.el

index 3a2a008..ed78350 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-07  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-addon.el (riece-resolve-addons): Check the existence of
+       riece-addon-directory.
+
 2005-02-06  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-filter.el (riece-filter): Modified regexp.
index 3cfda07..7cf6bd4 100644 (file)
 
 (defun riece-resolve-addons (addons)
   (riece-resolve-addon-dependencies
-   (append addons
-          (mapcar
-           (lambda (name)
-             (intern (file-name-sans-extension name)))
-           (directory-files riece-addon-directory nil "\\`[^.]" t)))))
+   (if (file-directory-p riece-addon-directory)
+       (append addons
+              (mapcar
+               (lambda (name)
+                 (intern (file-name-sans-extension name)))
+               (directory-files riece-addon-directory nil "\\`[^.]" t)))
+     addons)))
 
 (defun riece-insinuate-addon (addon &optional verbose)
   (require addon)              ;implicit dependency