called in folder mode.
* wl-var.el (wl-summary-exit-pre-hook): New variable.
* wl-summary.el (wl-summary-exit-pre-hook): Run `wl-summary-exit-pre-hook'
before exit summary mode.
(or (not (interactive-p))
(y-or-n-p (format "Expire %s? " (elmo-folder-name-internal
folder)))))
- (let* ((msgdb (wl-summary-buffer-msgdb))
+ (let* ((msgdb (or (wl-summary-buffer-msgdb)
+ (progn (elmo-folder-open folder 'load-msgdb)
+ (elmo-folder-msgdb folder))))
(number-alist (elmo-msgdb-get-number-alist msgdb))
(mark-alist (elmo-msgdb-get-mark-alist msgdb))
expval rm-type val-type value more args
summary-win
message-buf message-win
folder-buf folder-win)
+ (run-hooks 'wl-summary-exit-pre-hook)
(if wl-summary-buffer-exit-function
(funcall wl-summary-buffer-exit-function)
(wl-summary-cleanup-temp-marks sticky)
(elmo-folder-name-internal folder))) ; folder is moved.
(eq major-mode 'wl-summary-mode)) ; called in summary.
(setq wl-summary-last-visited-folder (wl-summary-buffer-folder-name))
+ (run-hooks 'wl-summary-exit-pre-hook)
(wl-summary-cleanup-temp-marks (wl-summary-sticky-p))
(wl-summary-save-view 'keep) ; keep current buffer, anyway.
(elmo-folder-commit wl-summary-buffer-elmo-folder))
"A hook called when Message is displayed.")
(defvar wl-message-exit-hook nil
"A hook called when quit message.")
+(defvar wl-summary-exit-pre-hook nil
+ "A hook called before exit summary mode.")
(defvar wl-summary-exit-hook nil
"A hook called when exit summary mode.")
(defvar wl-highlight-headers-hook nil