refile-destination -> action-argument.
(wl-summary-unset-mark): Ditto.
(wl-summary-remove-argument): Ditto.
(wl-summary-print-argument): Ditto.
* wl-thread.el (wl-thread-update-line-on-buffer-sub): Ditto.
(wl-thread-remove-argument-region): Ditto.
(wl-thread-print-argument-region): Ditto.
(wl-thread-close): Ditto.
(wl-thread-open): Ditto.
* wl-highlight.el (wl-highlight-action-argument-face): Ditto.
(wl-highlight-refile-destination-face is abolished)
(wl-highlight-action-argument-string): Ditto.
(wl-highlight-summary-current-line): Highlight action argument.
2003-07-24 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-action.el (wl-summary-set-mark): Changed terminology
+ refile-destination -> action-argument.
+ (wl-summary-unset-mark): Ditto.
+ (wl-summary-remove-argument): Ditto.
+ (wl-summary-print-argument): Ditto.
+
+ * wl-thread.el (wl-thread-update-line-on-buffer-sub): Ditto.
+ (wl-thread-remove-argument-region): Ditto.
+ (wl-thread-print-argument-region): Ditto.
+ (wl-thread-close): Ditto.
+ (wl-thread-open): Ditto.
+
+ * wl-highlight.el (wl-highlight-action-argument-face): Ditto.
+ (wl-highlight-refile-destination-face is abolished)
+ (wl-highlight-action-argument-string): Ditto.
+ (wl-highlight-summary-current-line): Highlight action argument.
+
* wl-highlight.el (wl-highlight-summary-deleted-face): Changed default
color for light backgrounds.
(wl-highlight-summary-answered-face): Ditto.
(when wl-summary-highlight
(wl-highlight-summary-current-line))
(when data
- (wl-summary-print-destination number data)))
+ (wl-summary-print-argument number data)))
;; Set action.
(funcall (wl-summary-action-set-function action)
number
(when wl-summary-highlight
(wl-highlight-summary-current-line))
(when (wl-summary-action-argument-function action)
- (wl-summary-remove-destination)))
+ (wl-summary-remove-argument)))
(set-buffer-modified-p nil))
;; Remove from temporal mark structure.
(wl-summary-unregister-target-mark number)
(message "Resending message to %s...done" address)))
;;;
-(defun wl-summary-remove-destination ()
+(defun wl-summary-remove-argument ()
(save-excursion
(let ((inhibit-read-only t)
(buffer-read-only nil)
(search-forward "\r")
(forward-char -1)
(setq eol (point))
- (setq rs (next-single-property-change sol 'wl-summary-destination
+ (setq rs (next-single-property-change sol 'wl-summary-action-argument
buf eol))
- (setq re (next-single-property-change rs 'wl-summary-destination
+ (setq re (next-single-property-change rs 'wl-summary-action-argument
buf eol))
- (put-text-property rs re 'wl-summary-destination nil)
+ (put-text-property rs re 'wl-summary-action-argument nil)
(put-text-property rs re 'invisible nil)
(goto-char re)
(delete-char (- eol re)))))
fld))))
fld))
-(defun wl-summary-print-destination (msg-num folder)
- "Print refile destination on line."
+(defun wl-summary-print-argument (msg-num folder)
+ "Print action argument on line."
(when folder
- (wl-summary-remove-destination)
+ (wl-summary-remove-argument)
(save-excursion
(let ((inhibit-read-only t)
(folder (copy-sequence folder))
(setq rs (point))
(when wl-summary-width
(put-text-property rs re 'invisible t))
- (put-text-property rs re 'wl-summary-destination t)
+ (put-text-property rs re 'wl-summary-action-argument t)
(goto-char re)
- (wl-highlight-refile-destination-string folder)
+ (wl-highlight-action-argument-string folder)
(insert folder)
(set-buffer-modified-p nil))))))
"Face used for displaying demo."
:group 'wl-faces)
-(wl-defface wl-highlight-refile-destination-face
+(wl-defface wl-highlight-action-argument-face
'((((class color)
(background dark))
(:foreground "pink"))
(((class color)
(background light))
(:foreground "red")))
- "Face used for displaying refile destination."
+ "Face used for displaying action argument."
:group 'wl-summary-faces
:group 'wl-faces)
(setq status-mark (wl-summary-persistent-mark))
(setq temp-mark (wl-summary-temp-mark))
(when (setq action (assoc temp-mark wl-summary-mark-action-list))
- (setq fsymbol (nth 5 action)))
+ (setq fsymbol (nth 5 action))
+ (setq dest (nth 2 action)))
(if (not fsymbol)
(cond
((and (string= temp-mark wl-summary-score-over-mark)
(setq fsymbol 'wl-highlight-summary-thread-top-face)
(setq fsymbol 'wl-highlight-summary-normal-face)))))
(put-text-property bol eol 'face fsymbol)
+ (when dest
+ (put-text-property (next-single-property-change
+ (next-single-property-change
+ bol 'wl-summary-action-argument
+ nil eol)
+ 'wl-summary-action-argument nil eol)
+ eol
+ 'face
+ 'wl-highlight-action-argument-face))
(if wl-use-highlight-mouse-line
(put-text-property bol
eol 'mouse-face 'highlight))
(overlay-put ov 'wl-momentary-overlay t))
(forward-line 1)))))
-(defun wl-highlight-refile-destination-string (string)
+(defun wl-highlight-action-argument-string (string)
(put-text-property 0 (length string) 'face
- 'wl-highlight-refile-destination-face
+ 'wl-highlight-action-argument-face
string))
(defun wl-highlight-summary-all ()
(wl-thread-make-indent-string entity)
(wl-thread-entity-get-linked entity)))
(if dest-pair
- (wl-summary-print-destination (car dest-pair)
- (cdr dest-pair)))))
+ (wl-summary-print-argument (car dest-pair)
+ (cdr dest-pair)))))
;; insert thread (moving thread)
(if (not (setq invisible-top
(wl-thread-entity-parent-invisible-p entity)))
(forward-line 1))
(beginning-of-line)))
-(defun wl-thread-remove-destination-region (beg end)
+(defun wl-thread-remove-argument-region (beg end)
(save-excursion
(save-restriction
(narrow-to-region beg end)
(goto-char (point-min))
(while (not (eobp))
- (wl-summary-remove-destination)
+ (wl-summary-remove-argument)
(forward-line 1)))))
-(defun wl-thread-print-destination-region (beg end)
+(defun wl-thread-print-argument-region (beg end)
(if wl-summary-buffer-temp-mark-list
(save-excursion
(save-restriction
(wl-summary-registered-temp-mark num))
(nth 2 temp-mark)
(setq pair (cons (nth 0 temp-mark)(nth 2 temp-mark))))
- (wl-summary-print-destination (car pair) (cdr pair))))
+ (wl-summary-print-argument (car pair) (cdr pair))))
(forward-line 1))))))
(defsubst wl-thread-get-children-msgs (msg &optional visible-only)
(beginning-of-line)
(setq beg (point))
(wl-thread-goto-bottom-of-sub-thread)
- (wl-thread-remove-destination-region beg
- (point))
+ (wl-thread-remove-argument-region beg
+ (point))
(forward-char -1) ;; needed for mouse-face.
(delete-region beg (point))
(wl-thread-insert-entity (- depth 1)
(nth 3 entity))
nil)
(delete-char 1) ; delete '\n'
- (wl-thread-print-destination-region beg (point))))
+ (wl-thread-print-argument-region beg (point))))
(defun wl-thread-open (entity)
(let (depth beg)
(wl-thread-get-entity
(nth 3 entity)) nil)
(delete-char 1) ; delete '\n'
- (wl-thread-print-destination-region beg (point))))
+ (wl-thread-print-argument-region beg (point))))
(defun wl-thread-open-close (&optional force-open)
(interactive "P")