X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=wl%2Fwl.el;h=300e144c6d1be5be9e55090bc30a25dccebc194c;hb=54482fff6bd6498729682555a0ba3c3cd092a1b5;hp=250c80cb1d1fdbda4f28ff67ecda4b50942cfb21;hpb=9c83baad4685fa96cf7f6f4cc126f4cd79a16742;p=elisp%2Fwanderlust.git diff --git a/wl/wl.el b/wl/wl.el index 250c80c..300e144 100644 --- a/wl/wl.el +++ b/wl/wl.el @@ -119,14 +119,14 @@ (if (and wl-draft-enable-queuing wl-auto-flush-queue) (wl-draft-queue-flush)) -;; (when (and (eq major-mode 'wl-summary-mode) -;; (elmo-folder-plugged-p wl-summary-buffer-elmo-folder)) -;; (let* ((msgdb-dir (elmo-folder-msgdb-path -;; wl-summary-buffer-elmo-folder)) -;; (seen-list (elmo-msgdb-seen-load msgdb-dir))) -;; (setq seen-list -;; (wl-summary-flush-pending-append-operations seen-list)) -;; (elmo-msgdb-seen-save msgdb-dir seen-list))) +;;; (when (and (eq major-mode 'wl-summary-mode) +;;; (elmo-folder-plugged-p wl-summary-buffer-elmo-folder)) +;;; (let* ((msgdb-dir (elmo-folder-msgdb-path +;;; wl-summary-buffer-elmo-folder)) +;;; (seen-list (elmo-msgdb-seen-load msgdb-dir))) +;;; (setq seen-list +;;; (wl-summary-flush-pending-append-operations seen-list)) +;;; (elmo-msgdb-seen-save msgdb-dir seen-list))) (run-hooks 'wl-plugged-hook)) (wl-biff-stop) (run-hooks 'wl-unplugged-hook)) @@ -232,8 +232,8 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (wl-plugged-dop-queue-info)) (setq wl-plugged-alist (sort (copy-sequence elmo-plugged-alist) - '(lambda (a b) - (string< (caar a) (caar b)))))) + (lambda (a b) + (string< (caar a) (caar b)))))) (defun wl-plugged-sending-queue-info () ;; sending queue status @@ -265,7 +265,7 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (if (> len 1) (format ": %d msgs (" len) (format ": %d msg (" len)) - (mapconcat (function int-to-string) (cdr qinfo) ",") + (mapconcat (function number-to-string) (cdr qinfo) ",") ")"))) (defun wl-plugged-dop-queue-info () @@ -274,11 +274,11 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (elmo-dop-queue (copy-sequence elmo-dop-queue)) dop-queue last alist server-info ope operation) - ;(elmo-dop-queue-load) +;;; (elmo-dop-queue-load) (elmo-dop-queue-merge) - (setq dop-queue (sort elmo-dop-queue '(lambda (a b) - (string< (elmo-dop-queue-fname a) - (elmo-dop-queue-fname b))))) + (setq dop-queue (sort elmo-dop-queue (lambda (a b) + (string< (elmo-dop-queue-fname a) + (elmo-dop-queue-fname b))))) (wl-append dop-queue (list nil)) ;; terminate(dummy) (when (car dop-queue) (setq last (elmo-dop-queue-fname (car dop-queue)))) ;; first @@ -294,7 +294,7 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (if (and (car dop-queue) (string= last (elmo-dop-queue-fname (car dop-queue)))) (wl-append operation (list ope)) - ;;(setq count (1+ count)) +;;; (setq count (1+ count)) (when (and last (setq server-info (elmo-net-port-info (wl-folder-get-elmo-folder last)))) (setq alist @@ -313,29 +313,29 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (let ((operations (cdr qinfo)) (column (or column wl-plugged-queue-status-column))) (mapconcat - '(lambda (folder-ope) - (concat (wl-plugged-set-folder-icon - (car folder-ope) - (wl-folder-get-petname (car folder-ope))) - "(" - (let ((opes (cdr folder-ope)) - pair shrinked) - (while opes - (if (setq pair (assoc (car (car opes)) shrinked)) - (setcdr pair (+ (cdr pair) - (max (cdr (car opes)) 1))) - (setq shrinked (cons - (cons (car (car opes)) - (max (cdr (car opes)) 1)) - shrinked))) - (setq opes (cdr opes))) - (mapconcat - '(lambda (ope) - (if (> (cdr ope) 0) - (format "%s:%d" (car ope) (cdr ope)) - (format "%s" (car ope)))) - (nreverse shrinked) ",")) - ")")) + (lambda (folder-ope) + (concat (wl-plugged-set-folder-icon + (car folder-ope) + (wl-folder-get-petname (car folder-ope))) + "(" + (let ((opes (cdr folder-ope)) + pair shrinked) + (while opes + (if (setq pair (assoc (car (car opes)) shrinked)) + (setcdr pair (+ (cdr pair) + (max (cdr (car opes)) 1))) + (setq shrinked (cons + (cons (car (car opes)) + (max (cdr (car opes)) 1)) + shrinked))) + (setq opes (cdr opes))) + (mapconcat + (lambda (ope) + (if (> (cdr ope) 0) + (format "%s:%d" (car ope) (cdr ope)) + (format "%s" (car ope)))) + (nreverse shrinked) ",")) + ")")) operations (concat "\n" (wl-set-string-width column ""))))) @@ -573,8 +573,8 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." (defun wl-plugged-exit () (interactive) - (setq ;;elmo-plugged-alist wl-plugged-alist - wl-plugged wl-plugged-switch + (setq wl-plugged wl-plugged-switch +;;; elmo-plugged-alist wl-plugged-alist wl-plugged-alist nil wl-plugged-sending-queue-alist nil wl-plugged-dop-queue-alist nil) @@ -689,9 +689,9 @@ Entering Plugged mode calls the value of `wl-plugged-mode-hook'." "\\|"))) (when wl-delete-startup-frame-function (funcall wl-delete-startup-frame-function)) -;; (if (and wl-folder-use-frame -;; (> (length (visible-frame-list)) 1)) -;; (delete-frame)) +;;; (if (and wl-folder-use-frame +;;; (> (length (visible-frame-list)) 1)) +;;; (delete-frame)) (setq wl-init nil) (remove-hook 'kill-emacs-hook 'wl-save-status) (elmo-passwd-alist-clear)