docstring and custom spec.
* wl-summary.el (wl-summary-unset-persistent-mark): Treat global
flags too; Don't treat Cached and New.
(wl-summary-set-persistent-mark): Ditto.
* wl-folder.el (wl-folder-set-persistent-mark): Renamed from
`wl-folder-set-flag'.
* wl-draft.el (wl-draft-send): Use `wl-folder-set-persistent-mark'
instead of `wl-folder-set-flag'.
2004-09-04 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-vars.el (wl-summary-persistent-mark-priority-list): Update
+ docstring and custom spec.
+
+ * wl-summary.el (wl-summary-unset-persistent-mark): Treat global
+ flags too; Don't treat Cached and New.
+ (wl-summary-set-persistent-mark): Ditto.
+
+ * wl-folder.el (wl-folder-set-persistent-mark): Renamed from
+ `wl-folder-set-flag'.
+
+ * wl-draft.el (wl-draft-send): Use `wl-folder-set-persistent-mark'
+ instead of `wl-folder-set-flag'.
+
* wl-summary.el (wl-summary-unset-persistent-mark): Ignore case
for completion.
(wl-summary-set-persistent-mark): Ditto.
;; might changed by Fcc.
;; It causes a huge loss in the IMAP folder.
(when (and parent-flag parent-number parent-folder)
- (wl-folder-set-flag parent-folder parent-number parent-flag))
+ (wl-folder-set-persistent-mark
+ parent-folder parent-number parent-flag))
(funcall wl-draft-send-function editing-buffer kill-when-done)
;; Now perform actions on successful sending.
(while mail-send-actions
(wl-folder-toggle-disp-summary 'off wl-queue-folder)
(switch-to-buffer cur-buf))))))
-(defun wl-folder-set-flag (folder number flag)
- "Set FLAG on the message."
+(defun wl-folder-set-persistent-mark (folder number flag)
+ "Set a persistent mark which corresponds to the specified flag on message."
(let ((buffer (wl-summary-get-buffer folder))
elmo-folder)
(if buffer
"Flag: "
(mapcar (lambda (flag)
(list (capitalize (symbol-name flag))))
- elmo-preserved-flags)
+ (delq
+ 'cached
+ (delq 'new
+ (elmo-uniq-list
+ (append elmo-global-flag-list
+ elmo-preserved-flags)))))
nil
'require-match))))))
(wl-summary-set-persistent-mark-internal 'inverse
"Flag: "
(mapcar (lambda (flag)
(list (capitalize (symbol-name flag))))
- elmo-preserved-flags)
+ (delq
+ 'cached
+ (delq 'new
+ (elmo-uniq-list
+ (append elmo-global-flag-list
+ elmo-preserved-flags)))))
nil
'require-match))))))
(wl-summary-set-persistent-mark-internal
new
answered
unread)
- "List of flags reflected with the priority to persistent marks and faces."
- :type '(repeat (radio (const :format "%v " new)
- (const :format "%v " flag)
- (const :format "%v " answered)
- (const :format "%v " unread)))
+ "List of preserved flag symbols to define the priority to map\
+to the persistent mark.
+Special symbol `flag' means the user defined flag."
+ :type '(repeat (symbol :tag "preserved flag"))
:group 'wl-summary)
(defcustom wl-summary-flag-alist
'((important "orange"))
- "An alist to define the flags for the summary mode.
+ "An alist to define the global flags for the summary mode.
Each element is a form like:
\(SYMBOL-OF-FLAG COLOR [MARK]\)
Example: