From ceb5cd64ea15574bd2a575cff5ec03ee97c17c9e Mon Sep 17 00:00:00 2001 From: hmurata Date: Sun, 19 Sep 2004 15:03:25 +0000 Subject: [PATCH] (wl-summary-get-available-flags): Rewrite. --- wl/ChangeLog | 4 ++++ wl/wl-summary.el | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/wl/ChangeLog b/wl/ChangeLog index 1a13a79..c0e8451 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2004-09-19 Hiroya Murata + + * wl-summary.el (wl-summary-get-available-flags): Rewrite. + 2004-09-19 Yoichi NAKAYAMA * wl-summary.el (wl-summary-sync-marks): Remove condition which diff --git a/wl/wl-summary.el b/wl/wl-summary.el index f10bd11..4ad7f8c 100644 --- a/wl/wl-summary.el +++ b/wl/wl-summary.el @@ -1793,13 +1793,13 @@ This function is defined for `window-scroll-functions'" reverse)) (defun wl-summary-get-available-flags (&optional include-specials) - (if include-specials - (elmo-uniq-list (append elmo-global-flag-list elmo-preserved-flags)) - (delq 'new (delq 'cached - (elmo-uniq-list - (append elmo-global-flag-list - elmo-preserved-flags - nil)))))) + (let ((flags (elmo-uniq-list + (append elmo-global-flag-list + (copy-sequence elmo-preserved-flags)) + #'delq))) + (if include-specials + flags + (delq 'new (delq 'cached flags))))) (defun wl-summary-sync-marks () "Update persistent marks in summary." -- 1.7.10.4