2006-09-28 Yoichi NAKAYAMA <yoichi@geiin.org>
+ * wl-thread.el (wl-thread-close-children): New function.
+ (wl-thread-open-children): Ditto.
+ * wl-action.el (wl-summary-set-mark): Redo the last change by
+ using it.
+
* wl-action.el (wl-summary-set-mark): Undo the last change.
Forbid interactive call.
(wl-highlight-summary-current-line))
(when data
(wl-summary-print-argument number data)))
+ (when (and (eq wl-summary-buffer-view 'thread)
+ interactive)
+ (wl-thread-open-children number))
(set-buffer-modified-p nil)
;; Return value.
number))
(delete-char 1) ; delete '\n'
(wl-thread-print-argument-region beg (point))))
+(defun wl-thread-close-children (&optional number)
+ (interactive)
+ (when (eq wl-summary-buffer-view 'thread)
+ (setq number (or number (wl-summary-message-number)))
+ (save-excursion
+ (let ((inhibit-read-only t)
+ (entity (wl-thread-get-entity number)))
+ (when (wl-thread-entity-get-opened entity)
+ (wl-thread-close entity))))))
+
(defun wl-thread-open (entity)
(let (depth beg)
(beginning-of-line)
(delete-char 1) ; delete '\n'
(wl-thread-print-argument-region beg (point))))
+(defun wl-thread-open-children (&optional number)
+ (interactive)
+ (when (eq wl-summary-buffer-view 'thread)
+ (setq number (or number (wl-summary-message-number)))
+ (save-excursion
+ (let ((inhibit-read-only t)
+ (entity (wl-thread-get-entity number)))
+ (unless (wl-thread-entity-get-opened entity)
+ (wl-thread-open entity))))))
+
(defun wl-thread-open-close (&optional force-open)
(interactive "P")
(when (eq wl-summary-buffer-view 'thread)