* wl-folder.el (wl-folder-open-folder): Avoid error.
authoryoichi <yoichi>
Sat, 24 Jul 2004 20:40:08 +0000 (20:40 +0000)
committeryoichi <yoichi>
Sat, 24 Jul 2004 20:40:08 +0000 (20:40 +0000)
Reported by John Owens, [wl-en:815]

wl/ChangeLog
wl/wl-folder.el

index bec7079..3700760 100644 (file)
@@ -1,5 +1,8 @@
 2004-07-25  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
+       * wl-folder.el (wl-folder-open-folder): Avoid error.
+       Reported by John Owens, [wl-en:815]
+
        * wl.el (wl): Set timer for biff process even if prefix argument
        is given or auto-checking is quitted.
 
index 72eb130..175e972 100644 (file)
@@ -2453,12 +2453,13 @@ Use `wl-subscribed-mailing-list'."
   (interactive)
   (if (not fld-name)
       (setq fld-name (wl-summary-read-folder wl-default-folder)))
-  (let* ((id (wl-folder-get-entity-id
-             (wl-folder-search-entity-by-name fld-name wl-folder-entity
-                                              'folder)))
-        (path (and id (wl-folder-get-path wl-folder-entity id))))
-      (if path
-         (wl-folder-open-folder-sub path))))
+  (let ((entity (wl-folder-search-entity-by-name
+                fld-name wl-folder-entity 'folder)))
+    (if entity
+       (let* ((id (wl-folder-get-entity-id entity))
+              (path (and id (wl-folder-get-path wl-folder-entity id))))
+         (if path (wl-folder-open-folder-sub path)))
+      (message "%s: not found" fld-name))))
 
 (defun wl-folder-open-folder-sub (path)
   (let ((inhibit-read-only t)