;;
;;; Commentary:
-;; Edit To:, Cc:, Bcc: fields interactively from E-Mail address list
+;; Edit To:, Cc:, Bcc: fields interactively from E-Mail address list
;; on ~/.address file.
;;; Code:
(define-key wl-addrmgr-mode-map "\C-c\C-k" 'wl-addrmgr-quit)
(define-key wl-addrmgr-mode-map "C" 'wl-addrmgr-change-method)
-
+
(define-key wl-addrmgr-mode-map "Z" 'wl-addrmgr-reload)
(define-key wl-addrmgr-mode-map "\C-c\C-l" 'wl-addrmgr-redraw))
(if (eq major-mode 'wl-draft-mode)
(if (get-buffer-window wl-addrmgr-buffer-name)
nil
- (split-window (selected-window)
+ (split-window (selected-window)
(- (window-height (selected-window))
wl-addrmgr-buffer-lines))
(select-window (next-window))
(switch-to-buffer (get-buffer-create wl-addrmgr-buffer-name)))
(set-buffer wl-addrmgr-buffer-name)
(wl-addrmgr-mode)
- (unless wl-addrmgr-method
+ (unless wl-addrmgr-method
(setq wl-addrmgr-method wl-addrmgr-default-method
wl-addrmgr-method-name (symbol-name wl-addrmgr-default-method)))
(unless wl-addrmgr-sort-key
(put-text-property 0 (length addr) 'face
wl-addrmgr-address-face
addr)
- (insert
+ (insert
(wl-set-string-width
(- wl-addrmgr-line-width 4)
(concat real " " pet " " addr)))
list field addrs beg real pet addr)
(erase-buffer)
(goto-char (point-min))
- (insert
+ (insert
"Mark "
(wl-set-string-width wl-addrmgr-realname-width
"Realname")
addrs (cdr list))
(while addrs
(goto-char (point-min))
- (when (wl-addrmgr-search-forward-address (car (car addrs)))
+ (when (wl-addrmgr-search-forward-address (car addrs))
(wl-addrmgr-mark-write field)
(setcdr list (delq (car addrs) (cdr list))))
(setq addrs (cdr addrs)))
(setq already-list (cdr already-list))))))
-
+
(defun wl-addrmgr-next ()
"Move cursor next line."
(interactive)
(defun wl-addrmgr-sort ()
"Sort address entry."
(interactive)
- (setq wl-addrmgr-sort-key (intern
- (completing-read
+ (setq wl-addrmgr-sort-key (intern
+ (completing-read
(format "Sort By (%s): "
(symbol-name wl-addrmgr-sort-key))
'(("address")("realname")("petname")("none"))
(symbol-name wl-addrmgr-sort-key))))
(if (eq wl-addrmgr-sort-key 'none)
(wl-addrmgr-reload)
- (setq wl-addrmgr-sort-order (intern
- (completing-read
+ (setq wl-addrmgr-sort-order (intern
+ (completing-read
(format "Sort Order (%s): "
(symbol-name wl-addrmgr-sort-order))
'(("ascending") ("descending"))
(defun wl-addrmgr-change-method ()
(interactive)
- (setq wl-addrmgr-method (intern
+ (setq wl-addrmgr-method (intern
(setq wl-addrmgr-method-name
- (completing-read
+ (completing-read
(format "Method (%s): "
(symbol-name wl-addrmgr-method))
(mapcar (lambda (pair)
(defun wl-addrmgr-address-entry ()
(save-excursion
(end-of-line)
- (get-text-property (previous-single-property-change
- (point) 'wl-addrmgr-entry nil
+ (get-text-property (previous-single-property-change
+ (point) 'wl-addrmgr-entry nil
(progn
(beginning-of-line)
(point)))
(defun wl-addrmgr-mark-write (&optional mark)
"Set MARK to the current address entry."
- (save-excursion
+ (save-excursion
(end-of-line)
(unless (< (count-lines (point-min) (point)) 3)
(let ((buffer-read-only nil) beg end)
(list to-list cc-list bcc-list))))
(defun wl-addrmgr-apply-exec (rcpt)
- (let ((to (nconc (nth 0 rcpt) (mapcar
+ (let ((to (nconc (nth 0 rcpt) (mapcar
'cdr
(cdr (assq 'to wl-addrmgr-unknown-list)))))
(cc (nconc (nth 1 rcpt) (mapcar
- 'cdr
+ 'cdr
(cdr (assq 'cc wl-addrmgr-unknown-list)))))
- (bcc (nconc (nth 2 rcpt) (mapcar
- 'cdr
+ (bcc (nconc (nth 2 rcpt) (mapcar
+ 'cdr
(cdr (assq 'bcc wl-addrmgr-unknown-list)))))
from clist)
(setq clist (list (cons "Bcc" (if bcc (mapconcat 'identity bcc ",\n\t")))