+2000-07-07 Kenichi OKADA <okada@opaopa.org>
+
+ * wl-summary.el (wl-summary-buffer-thread-modified):
+ New buffer-local variable.
+ (wl-summary-set-thread-modified): New function.
+ (wl-summary-thread-modified-p): New function.
+ (wl-summary-save-status): Use function `wl-summary-thread-modified-p'.
+ (wl-summary-yank-saved-message): Use function
+ `wl-summary-set-thread-modified'
+ (wl-summary-switch-to-clone-buffer): Add
+ `wl-summary-buffer-thread-modified'.
+
+ * wl-vars.el (wl-summary-buffer-message-saved-hook): New variable.
+ (wl-summary-buffer-mark-saved-hook): Ditto.
+ * wl-summary.el (wl-summary-msgdb-save): New hook
+ `wl-summary-buffer-message-saved-hook' and
+ `wl-summary-buffer-mark-saved-hook'.
+
2000-07-04 Katsumi Yamaoka <yamaoka@jpl.org>
* wl-demo.el (wl-demo): Simplified `fringe' face manipulation.
(defvar wl-summary-buffer-view 'thread)
(defvar wl-summary-buffer-message-modified nil)
(defvar wl-summary-buffer-mark-modified nil)
+(defvar wl-summary-buffer-thread-modified nil)
(defvar wl-summary-buffer-number-column nil)
(defvar wl-summary-buffer-number-regexp nil)
(defvar wl-summary-buffer-persistent nil)
'wl-summary-buffer-view
'wl-summary-buffer-message-modified
'wl-summary-buffer-mark-modified
+ 'wl-summary-buffer-thread-modified
'wl-summary-buffer-number-column
'wl-summary-buffer-number-regexp
'wl-summary-buffer-persistent
(setq wl-summary-buffer-mark-modified t))
(defun wl-summary-mark-modified-p ()
wl-summary-buffer-mark-modified)
+(defun wl-summary-set-thread-modified ()
+ (setq wl-summary-buffer-thread-modified t))
+(defun wl-summary-thread-modified-p ()
+ wl-summary-buffer-thread-modified)
(defun wl-summary-msgdb-save ()
"Save msgdb if modified."
(elmo-string wl-summary-buffer-folder-name)
(elmo-msgdb-get-number-alist
wl-summary-buffer-msgdb))
- (setq wl-summary-buffer-message-modified nil))
+ (setq wl-summary-buffer-message-modified nil)
+ (run-hooks 'wl-summary-buffer-message-saved-hook))
(when (wl-summary-mark-modified-p)
(or path
(setq path (elmo-msgdb-expand-path
;; 0
;; (+ wl-summary-buffer-new-count wl-summary-buffer-unread-count))
;; (setq wl-folder-info-alist-modified t)
- (setq wl-summary-buffer-mark-modified nil))))))
+ (setq wl-summary-buffer-mark-modified nil)
+ (run-hooks 'wl-summary-buffer-mark-saved-hook))))))
(defsubst wl-summary-cleanup-temp-marks (&optional sticky)
(if (or wl-summary-buffer-refile-list
;; save the current summary buffer view.
(if (and wl-summary-cache-use
(or (wl-summary-message-modified-p)
- (wl-summary-mark-modified-p)))
+ (wl-summary-mark-modified-p)
+ (wl-summary-thread-modified-p)))
(wl-summary-save-view-cache sticky))
;; save msgdb ...
(wl-summary-msgdb-save)))
wl-summary-buffer-number-column
wl-summary-buffer-number-regexp
wl-summary-buffer-message-modified
- wl-summary-buffer-mark-modified)
+ wl-summary-buffer-mark-modified
+ wl-summary-buffer-thread-modified)
(and (eq wl-summary-buffer-view 'thread)
'(wl-thread-entity-hashtb
wl-thread-entities
(message "Cannot set itself as a parent.")
(save-excursion
(wl-thread-jump-to-msg wl-summary-buffer-saved-message)
- (wl-thread-set-parent number))
+ (wl-thread-set-parent number)
+ (wl-summary-set-thread-modified))
(setq wl-summary-buffer-saved-message nil)))
(message "There's no saved message.")))