(wl-draft-reply): List in r-list can contain function.
authorkaoru <kaoru>
Wed, 18 Jun 2003 18:20:47 +0000 (18:20 +0000)
committerkaoru <kaoru>
Wed, 18 Jun 2003 18:20:47 +0000 (18:20 +0000)
wl/ChangeLog
wl/wl-draft.el

index f8a6e4c..59901cb 100644 (file)
@@ -2,6 +2,7 @@
 
        * wl-draft.el (wl-draft-send-mail-with-smtp): Catch quitting and
        write sendlog.
+       (wl-draft-reply): List in r-list can contain function.
 
 2003-06-15  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
index 383c6c9..b32e4fb 100644 (file)
@@ -348,8 +348,15 @@ Reply to author if WITH-ARG is non-nil."
                      ((listp condition)
                       (catch 'done
                         (while condition
-                          (if (not (std11-field-body (car condition)))
-                              (throw 'done nil))
+                          (cond
+                           ((stringp (car condition))
+                            (or (std11-field-body (car condition))
+                                (throw 'done nil)))
+                           ((symbolp (car condition))
+                            (or (funcall (car condition))
+                                (throw 'done nil)))
+                           (t
+                            (debug)))
                           (setq condition (cdr condition)))
                         t))
                      ((symbolp condition)