2003-07-16 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-summary.el (wl-summary-delete-messages-on-buffer): Don't display
+ buffer line deleting progress.
+ (wl-summary-mode-map): Bind wl-thread-dispose, Changed binding for
+ wl-thread-delete.
+
* wl-action.el (wl-summary-register-target-mark): Fixed argument.
(wl-summary-target-mark-set-action): Fixed.
(wl-summary-define-mark-action): Fixed quotation.
+ (wl-summary-move-mark-list-messages): Display message.
+ (wl-summary-define-mark-action): Define thread functions.
+ (wl-summary-exec-action-refile): Changed message.
+ (wl-summary-exec): Ditto.
2003-07-15 Mito <mito@mxa.nes.nec.co.jp>
(setq refile-len (length refiles))
(goto-char start) ; avoid moving cursor to
; the bottom line.
+ (message message)
(when (> refile-len elmo-display-progress-threshold)
(elmo-progress-set 'elmo-folder-move-messages
refile-len message))
(setq wl-summary-buffer-temp-mark-list
(delq mark-info wl-summary-buffer-temp-mark-list))))
(elmo-progress-clear 'elmo-folder-move-messages)
+ (message (concat message "done"))
(wl-summary-set-message-modified)
;; Return the operation failed message numbers.
(if result
`(lambda ()
,(wl-summary-action-docstring action)
(interactive)
- (wl-summary-target-mark-set-action (quote ,action))))))
+ (wl-summary-target-mark-set-action (quote ,action))))
+ (fset (intern (format "wl-thread-%s"
+ (wl-summary-action-symbol action)))
+ `(lambda (arg)
+ ,(wl-summary-action-docstring action)
+ (interactive "P")
+ (wl-thread-call-region-func
+ (quote ,(intern (format "wl-summary-%s-region"
+ (wl-summary-action-symbol action))))
+ arg)
+ (if arg
+ (wl-summary-goto-top-of-current-thread))
+ (if (not wl-summary-move-direction-downward)
+ (wl-summary-prev)
+ (wl-thread-goto-bottom-of-sub-thread)
+ (if wl-summary-buffer-disp-msg
+ (wl-summary-redisplay)))))))
(defun wl-summary-get-dispose-folder (folder)
(if (string= folder wl-trash-folder)
(goto-char start) ; avoid moving cursor to the bottom line.
(when (> refile-len elmo-display-progress-threshold)
(elmo-progress-set 'elmo-folder-move-messages
- refile-len "Moving messages..."))
+ refile-len "Refiling messages..."))
(while dst-msgs
(setq result nil)
(condition-case nil
(setq result (elmo-folder-move-messages
- wl-summary-buffer-elmo-folder
- (cdr (car dst-msgs))
- (wl-folder-get-elmo-folder
- (car (car dst-msgs)))
- (wl-summary-buffer-msgdb)
- (not (null (cdr dst-msgs)))
- nil ; no-delete
- nil ; same-number
- t))
+ wl-summary-buffer-elmo-folder
+ (cdr (car dst-msgs))
+ (wl-folder-get-elmo-folder
+ (car (car dst-msgs)))
+ (wl-summary-buffer-msgdb)
+ (not (null (cdr dst-msgs)))
+ nil ; no-delete
+ nil ; same-number
+ t))
(error nil))
(if result ; succeeded.
(progn
(wl-summary-toggle-disp-msg 'off)
(setq wl-message-buffer nil))
(set-buffer-modified-p nil)
- (message "Executing...done%s"
- (if (> failures 0)
- (format " (%d failed)" failures)
- ""))))
+ (when (> failures 0)
+ (format "%d execution(s) were failed" failures))))
(defun wl-summary-exec-region (beg end)
(interactive "r")
(define-key wl-summary-mode-map "t*" 'wl-thread-target-mark)
(define-key wl-summary-mode-map "to" 'wl-thread-refile)
(define-key wl-summary-mode-map "tO" 'wl-thread-copy)
- (define-key wl-summary-mode-map "td" 'wl-thread-delete)
+ (define-key wl-summary-mode-map "td" 'wl-thread-dispose)
+ (define-key wl-summary-mode-map "tD" 'wl-thread-delete)
(define-key wl-summary-mode-map "tu" 'wl-thread-unmark)
(define-key wl-summary-mode-map "t!" 'wl-thread-mark-as-unread)
(define-key wl-summary-mode-map "t$" 'wl-thread-mark-as-important)
(msgs2 msgs)
(len (length msgs))
(i 0)
- (deleting-info (or deleting-info "Deleting..."))
+ ;(deleting-info (or deleting-info "Deleting..."))
update-list)
(elmo-kill-buffer wl-summary-search-buf-name)
(while msgs
(delete-char 1) ; delete '\n'
(setq wl-summary-buffer-number-list
(delq (car msgs) wl-summary-buffer-number-list)))))
- (when (> len elmo-display-progress-threshold)
- (setq i (1+ i))
- (if (or (zerop (% i 5)) (= i len))
- (elmo-display-progress
- 'wl-summary-delete-messages-on-buffer deleting-info
- (/ (* i 100) len))))
+; (when (> len elmo-display-progress-threshold)
+; (setq i (1+ i))
+; (if (or (zerop (% i 5)) (= i len))
+; (elmo-display-progress
+; 'wl-summary-delete-messages-on-buffer deleting-info
+; (/ (* i 100) len))))
(setq msgs (cdr msgs)))
(when (eq wl-summary-buffer-view 'thread)
(wl-thread-update-line-msgs (elmo-uniq-list update-list))
(wl-thread-cleanup-symbols msgs2))
- (message (concat deleting-info "done"))
+ ;;(message (concat deleting-info "done"))
(wl-summary-count-unread)
(wl-summary-update-modeline)
(wl-folder-update-unread