X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=wl%2Fwl-thread.el;h=2839ee77f87f637bf2fc79d80bde74b7dcccf81e;hb=98f38e5383840a86e4ebca5803d505110d0997f8;hp=746bfba4930e901877f4c99e84df29fda8393e13;hpb=daef476592dbf12b92c90eaea45fd532bc8a7604;p=elisp%2Fwanderlust.git diff --git a/wl/wl-thread.el b/wl/wl-thread.el index 746bfba..2839ee7 100644 --- a/wl/wl-thread.el +++ b/wl/wl-thread.el @@ -41,13 +41,10 @@ (defvar wl-thread-entities nil) (defvar wl-thread-entity-list nil) ; entity list (defvar wl-thread-entity-hashtb nil) ; obarray -(defvar wl-thread-indent-regexp nil) (make-variable-buffer-local 'wl-thread-entity-hashtb) (make-variable-buffer-local 'wl-thread-entities) ; ".wl-thread-entity" (make-variable-buffer-local 'wl-thread-entity-list) ; ".wl-thread-entity-list" -(make-variable-buffer-local 'wl-thread-entity-cur) -(make-variable-buffer-local 'wl-thread-indent-regexp) ;;; global flag (defvar wl-thread-insert-force-opened nil) @@ -409,6 +406,7 @@ ENTITY is returned." (elmo-msgdb-overview-get-entity parent-msg (wl-summary-buffer-msgdb)) temp-mark + (elmo-msgdb-get-mark (wl-summary-buffer-msgdb) msg) (if wl-thread-insert-force-opened nil (wl-thread-maybe-get-children-num msg)) @@ -683,10 +681,9 @@ Message is inserted to the summary buffer." parent-msg (wl-summary-buffer-msgdb))) (when parent ;; use thread structure. - (wl-thread-entity-get-nearly-older-brother - child-entity parent))) ; return value -;;; (wl-thread-entity-get-number -;;; (wl-thread-entity-get-top-entity parent)))) ; return value; + ;;(wl-thread-entity-get-nearly-older-brother + ;; child-entity parent))) ; return value + (wl-thread-entity-get-number parent))) ; return value ;;; (setq beg (point)) ;;; (wl-thread-goto-bottom-of-sub-thread) ;;; (wl-thread-update-indent-string-region beg (point))) @@ -870,6 +867,7 @@ Message is inserted to the summary buffer." (elmo-msgdb-overview-get-entity (nth 0 parent-entity) (wl-summary-buffer-msgdb)) temp-mark + (elmo-msgdb-get-mark (wl-summary-buffer-msgdb) msg-num) (if wl-thread-insert-force-opened nil (wl-thread-maybe-get-children-num msg-num)) @@ -1085,6 +1083,8 @@ Message is inserted to the summary buffer." (wl-summary-jump-to-msg msg) (wl-thread-close (wl-thread-get-entity (wl-summary-message-number))))))) + (when wl-summary-lazy-highlight + (wl-highlight-summary-window)) (wl-summary-set-message-modified) (set-buffer-modified-p nil)))) @@ -1102,8 +1102,8 @@ Message is inserted to the summary buffer." (save-excursion (goto-char beg) (while (< (point) end) - ;(wl-thread-update-indent-string) - (wl-thread-update-line-on-buffer) + (save-excursion + (wl-thread-update-line-on-buffer-sub nil (wl-summary-message-number))) (forward-line 1)))) (defsubst wl-thread-make-indent-string (entity)