* wl-thread.el (wl-thread-entity-insert-as-children): Use
wl-thread-entity-set-children.
+ (wl-thread-insert-message, wl-thread-insert-entity-sub,
+ wl-thread-insert-entity, wl-thread-close, wl-thread-open):
+ Use wl-thread-entity-get-*.
2006-11-23 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
;; insert as children.
(wl-thread-entity-insert-as-children
parent
- (setq child-entity (wl-thread-create-entity
- msg (nth 0 parent) nil linked)))
+ (setq child-entity
+ (wl-thread-create-entity
+ msg (wl-thread-entity-get-number parent) nil linked)))
;; insert as top message.
(wl-thread-entity-insert-as-top
(wl-thread-create-entity msg nil)))
(setq temp-mark (wl-summary-get-score-mark msg-num)))
(setq message-entity
(elmo-message-entity wl-summary-buffer-elmo-folder
- (nth 0 entity)))
+ msg-num))
;;; (wl-delete-all-overlays)
(when message-entity
(wl-summary-insert-line
(wl-summary-create-line
message-entity
(elmo-message-entity wl-summary-buffer-elmo-folder
- (nth 0 parent-entity))
+ (wl-thread-entity-get-number parent-entity))
temp-mark
(elmo-message-status wl-summary-buffer-elmo-folder msg-num)
(if wl-thread-insert-force-opened
(while msgs
(wl-thread-insert-entity-sub indent entity parent-entity all)
(setq msgs (cdr msgs))
- (setq children (nth 2 entity))
+ (setq children (wl-thread-entity-get-children entity))
(if children
;; insert children
(when (or wl-thread-insert-force-opened
(wl-thread-insert-entity (- depth 1)
entity
(wl-thread-get-entity
- (nth 3 entity))
+ (wl-thread-entity-get-parent entity))
nil)
(delete-char 1) ; delete '\n'
(wl-thread-print-argument-region beg (point))))
(wl-thread-insert-entity depth ;(- depth 1)
entity
(wl-thread-get-entity
- (nth 3 entity)) nil)
+ (wl-thread-entity-get-parent entity))
+ nil)
(delete-char 1) ; delete '\n'
(wl-thread-print-argument-region beg (point))))