* wl-refile.el (wl-refile-learn): Move hit element to the top of
`wl-refile-alist'.
+2000-07-26 Takaaki MORIYAMA <taka@airlab.cs.ritsumei.ac.jp>
+
+ * wl-refile.el (wl-refile-learn): Move hit element to the top of
+ `wl-refile-alist'.
+
2000-07-26 Kenichi OKADA <okada@opaopa.org>
* wl-draft.el (wl-draft): Added argument `content-transfer-encoding'.
(member 'wl-refile-guess-by-subject
wl-refile-guess-func-list))
(wl-refile-subject-learn entity dst))))
- (if key
- (if (setq hit (assoc key wl-refile-alist))
- (setcdr hit dst)
- (setq wl-refile-alist
- (nconc wl-refile-alist (list (cons key dst))))))))
+ (when key
+ (if (setq hit (assoc key wl-refile-alist))
+ (setq wl-refile-alist (delq hit wl-refile-alist)))
+ (add-to-list 'wl-refile-alist (cons key dst)))))
(defun wl-refile-msgid-learn (entity dst)
(let ((key (elmo-msgdb-overview-entity-get-id entity))