(wl-draft-find-reply-headers): Avoid compile warning.
authorhmurata <hmurata>
Wed, 22 Feb 2006 16:22:06 +0000 (16:22 +0000)
committerhmurata <hmurata>
Wed, 22 Feb 2006 16:22:06 +0000 (16:22 +0000)
wl/ChangeLog
wl/wl-draft.el

index ce69f20..bec4178 100644 (file)
@@ -3,6 +3,7 @@
        * wl-draft.el (wl-draft-find-reply-headers): New function (extract
        from `wl-draft-reply').
        (wl-draft-reply): Use it.
+       (wl-draft-find-reply-headers): Avoid compile warning.
 
 2006-02-14  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
index 7846da7..a9c1ecf 100644 (file)
@@ -305,19 +305,19 @@ e.g.
 
 (defun wl-draft-find-reply-headers (rule-symbol)
   (let ((rule-list (symbol-value rule-symbol))
-       (condition-match-p
-        (lambda (condition)
-          (cond ((stringp condition)
-                 (std11-field-body condition))
-                ((symbolp condition)
-                 (funcall condition))
-                ((consp condition)
-                 (and (funcall condition-match-p (car condition))
-                      (funcall condition-match-p (cdr condition))))
-                ((null condition))
-                (t
-                 (error "Unkown condition in `%s'" rule-symbol)))))
-       result)
+       condition-match-p result)
+    (setq condition-match-p
+         (lambda (condition)
+           (cond ((stringp condition)
+                  (std11-field-body condition))
+                 ((symbolp condition)
+                  (funcall condition))
+                 ((consp condition)
+                  (and (funcall condition-match-p (car condition))
+                       (funcall condition-match-p (cdr condition))))
+                 ((null condition))
+                 (t
+                  (error "Unkown condition in `%s'" rule-symbol)))))
     (while (and (null result) rule-list)
       (let ((rule (car rule-list)))
        (when (funcall condition-match-p (car rule))