From: hmurata Date: Tue, 29 Jul 2003 04:23:16 +0000 (+0000) Subject: * wl-expire.el (wl-folder-expire-current-entity): Specify folder type. X-Git-Tag: wl-2_11_5~20 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7fd3203fbef08375414eef12bfd73611d0085a37;p=elisp%2Fwanderlust.git * wl-expire.el (wl-folder-expire-current-entity): Specify folder type. (wl-folder-archive-current-entity): Ditto. --- diff --git a/wl/ChangeLog b/wl/ChangeLog index 23e645b..74cf9cf 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,8 @@ +2003-07-29 Hiroya Murata + + * wl-expire.el (wl-folder-expire-current-entity): Specify folder type. + (wl-folder-archive-current-entity): Ditto. + 2003-07-28 Yuuichi Teranishi * wl-summary.el (wl-summary-update-mark): Ignore errors while diff --git a/wl/wl-expire.el b/wl/wl-expire.el index f122586..6291a8c 100644 --- a/wl/wl-expire.el +++ b/wl/wl-expire.el @@ -749,16 +749,17 @@ ex. +ml/wl/1999_11/, +ml/wl/1999_12/." (defun wl-folder-expire-current-entity () (interactive) - (let ((entity-name - (or (wl-folder-get-folder-name-by-id - (get-text-property (point) 'wl-folder-entity-id)) - (wl-folder-get-entity-from-buffer)))) + (let ((entity-name (wl-folder-get-entity-from-buffer)) + (type (if (wl-folder-buffer-group-p) + 'group + 'folder))) (when (and entity-name (or (not (interactive-p)) (y-or-n-p (format "Expire %s? " entity-name)))) (wl-folder-expire-entity (wl-folder-search-entity-by-name entity-name - wl-folder-entity)) + wl-folder-entity + type)) (if (get-buffer wl-summary-buffer-name) (kill-buffer wl-summary-buffer-name)) (message "Expiring %s is done" entity-name)))) @@ -767,16 +768,17 @@ ex. +ml/wl/1999_11/, +ml/wl/1999_12/." (defun wl-folder-archive-current-entity () (interactive) - (let ((entity-name - (or (wl-folder-get-folder-name-by-id - (get-text-property (point) 'wl-folder-entity-id)) - (wl-folder-get-entity-from-buffer)))) + (let ((entity-name (wl-folder-get-entity-from-buffer)) + (type (if (wl-folder-buffer-group-p) + 'group + 'folder))) (when (and entity-name (or (not (interactive-p)) (y-or-n-p (format "Archive %s? " entity-name)))) (wl-folder-archive-entity (wl-folder-search-entity-by-name entity-name - wl-folder-entity)) + wl-folder-entity + type)) (message "Archiving %s is done" entity-name)))) (defun wl-archive-number1 (folder archive-list &optional dst-folder-arg)