2004-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+ * wl-summary.el (wl-summary-sync-marks): Call
+ `wl-summary-set-persistent-mark' and
+ `wl-summary-unset-persistent-mark' with 4th argument `no-server'.
+ (wl-summary-set-persistent-mark-internal): Add 4th argument
+ `no-server'.
+ (wl-summary-unset-persistent-mark): Ditto.
+ (wl-summary-set-persistent-mark): Ditto.
+ (wl-summary-add-flags-internal): Abolish.
+ (wl-summary-remove-flags-internal): Ditto.
+ (wl-summary-mark-as-important-internal): Ditto.
+ (wl-summary-mark-as-important): Use
+ `wl-summary-set-persistent-mark' instead of
+ `wl-summary-add-flags-internal'.
+ (wl-summary-mark-as-important-region): Ditto.
+
+ * wl-score.el (wl-summary-score-update-all-lines): Ditto.
+
* wl-summary.el (wl-summary-get-available-flags): New function.
(wl-summary-sync-marks): Use it and simplified.
(wl-summary-unset-persistent-mark): Use
'important))))
(if (null number-list)
(message "No message.")
- (wl-summary-mark-as-important-internal remove number-list)
+ (wl-summary-set-persistent-mark-internal remove 'important number-list)
(wl-summary-count-unread)
(wl-summary-update-modeline))))
(setq diffs (cadr diff))
(setq mes (concat mes (format "-%d" (length diffs))))
(when diffs
- (wl-summary-unset-persistent-mark flag diffs 'no-modeline))
+ (wl-summary-unset-persistent-mark flag diffs 'no-modeline 'no-server))
(setq diffs (car diff)
mes (concat mes (format "/+%d %s " (length diffs) flag)))
(when diffs
- (wl-summary-set-persistent-mark flag diffs 'no-modeline)))
+ (wl-summary-set-persistent-mark flag diffs 'no-modeline 'no-server)))
(if (interactive-p) (message "%s" mes)))))
(defun wl-summary-sync-update (&optional unset-cursor
(defsubst wl-summary-set-persistent-mark-internal (inverse
&optional flag
number-or-numbers
- no-modeline-update)
+ no-modeline-update
+ no-server)
"Set persistent mark."
(save-excursion
(let ((folder wl-summary-buffer-elmo-folder)
(if (null number-list)
(message "No message.")
(if inverse
- (elmo-folder-unset-flag folder number-list flag)
- (elmo-folder-set-flag folder number-list flag))
+ (elmo-folder-unset-flag folder number-list flag no-server)
+ (elmo-folder-set-flag folder number-list flag no-server))
(dolist (number number-list)
(setq visible (wl-summary-jump-to-msg number))
;; set mark on buffer
(defun wl-summary-unset-persistent-mark (&optional flag
number-or-numbers
- no-modeline-update)
+ no-modeline-update
+ no-server)
"Unset persistent mark."
(interactive)
(when (interactive-p)
(wl-summary-set-persistent-mark-internal 'inverse
flag
number-or-numbers
- no-modeline-update))
+ no-modeline-update
+ no-server))
(defun wl-summary-set-persistent-mark (&optional flag
number-or-numbers
- no-modeline-update)
+ no-modeline-update
+ no-server)
"Set persistent mark."
(interactive)
(when (interactive-p)
(wl-summary-get-available-flags))
nil
'require-match))))))
- (wl-summary-set-persistent-mark-internal
- nil
- flag
- number-or-numbers
- no-modeline-update))
+ (wl-summary-set-persistent-mark-internal nil
+ flag
+ number-or-numbers
+ no-modeline-update
+ no-server))
(defun wl-summary-mark-as-answered (&optional number-or-numbers
no-modeline-update)
(wl-summary-update-persistent-mark))))
flags)))
-(defsubst wl-summary-add-flags-internal (&optional
- number-or-numbers
- flags
- local)
- (save-excursion
- (let ((folder wl-summary-buffer-elmo-folder)
- set-flags msg number-list visible)
- (setq number-list (cond ((numberp number-or-numbers)
- (list number-or-numbers))
- ((and (not (null number-or-numbers))
- (listp number-or-numbers))
- number-or-numbers)
- ((setq msg (wl-summary-message-number))
- ;; interactive
- (list msg))))
- (if (null number-list)
- (message "No message.")
- (dolist (number number-list)
- (setq set-flags
- (elmo-get-global-flags
- (elmo-message-flags folder number)))
- (setq set-flags (nconc flags set-flags))
- (elmo-message-set-global-flags folder number set-flags local)
- (setq visible (wl-summary-jump-to-msg number))
- ;; set mark on buffer
- (when visible
- (wl-summary-update-persistent-mark)))))))
-
-(defsubst wl-summary-remove-flags-internal (&optional
- number-or-numbers
- flags
- local)
- (save-excursion
- (let ((folder wl-summary-buffer-elmo-folder)
- set-flags msg number-list visible)
- (setq number-list (cond ((numberp number-or-numbers)
- (list number-or-numbers))
- ((and (not (null number-or-numbers))
- (listp number-or-numbers))
- number-or-numbers)
- ((setq msg (wl-summary-message-number))
- ;; interactive
- (list msg))))
- (if (null number-list)
- (message "No message.")
- (dolist (number number-list)
- (setq set-flags (elmo-get-global-flags
- (elmo-message-flags folder number)))
- (dolist (flag flags)
- (setq set-flags (delq flag set-flags)))
- (elmo-message-set-global-flags folder number set-flags local)
- (setq visible (wl-summary-jump-to-msg number))
- ;; set mark on buffer
- (when visible
- (wl-summary-update-persistent-mark)))))))
-
(defun wl-summary-set-flags (&optional remove)
(interactive "P")
(if (eq 'flag (elmo-folder-type-internal wl-summary-buffer-elmo-folder))
(error "Cannot process flags in this folder"))
(wl-summary-set-flags-internal nil nil nil remove))
-(defun wl-summary-mark-as-important-internal (inverse
- &optional number-or-numbers)
- (if inverse
- (wl-summary-remove-flags-internal number-or-numbers '(important))
- (wl-summary-add-flags-internal number-or-numbers '(important))))
-
(defun wl-summary-mark-as-important (&optional prompt)
(interactive "P")
(if (eq 'flag (elmo-folder-type-internal wl-summary-buffer-elmo-folder))
(error "Cannot process flags in this folder"))
(if prompt
(wl-summary-set-flags-internal)
- (wl-summary-mark-as-important-internal
+ (wl-summary-set-persistent-mark-internal
(and (interactive-p)
(elmo-message-flagged-p wl-summary-buffer-elmo-folder
(wl-summary-message-number)
- 'important)))))
+ 'important))
+ 'important)))
;;; Summary line.
(defvar wl-summary-line-formatter nil)