From 045ee8c50bd4d9e7300d89f23e5566dc84220135 Mon Sep 17 00:00:00 2001 From: okada Date: Thu, 7 Feb 2002 05:29:15 +0000 Subject: [PATCH] * wl-summary.el (wl-summary-pick): Fix for no match. --- wl/ChangeLog | 4 ++++ wl/wl-summary.el | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wl/ChangeLog b/wl/ChangeLog index 99d3bca..d7da732 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2002-02-07 Kenichi OKADA + + * wl-summary.el (wl-summary-pick): Fix for no match. + 2002-02-01 Kenichi OKADA * wl-draft.el (wl-draft-save): diff --git a/wl/wl-summary.el b/wl/wl-summary.el index 53cb147..2606e9c 100644 --- a/wl/wl-summary.el +++ b/wl/wl-summary.el @@ -3708,9 +3708,9 @@ If optional argument NUMBER is specified, mark message specified by NUMBER." (wl-summary-unmark)) (setq mlist (cdr mlist))) (setq wl-summary-buffer-target-mark-list nil))) - (if result - (setq num (wl-summary-target-mark-msgs result))) - (if (> num 0) + (if (and result + (setq num (wl-summary-target-mark-msgs result)) + (> num 0)) (if (= num (length result)) (message "%d message(s) are picked." num) (message "%d(%d) message(s) are picked." num -- 1.7.10.4