+2004-12-12 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-mode): Set kill-buffer-hook as
+ buffer-local.
+
+ * wl-mime.el (wl-draft-preview-message): Use make-local-hook for
+ kill-buffer-hook instead of make-local-variable.
+ (wl-draft-preview-message): Set `local' argument of add-hook as t.
+
2004-12-12 Scott Renfro <scott@renfro.org>
* wl-summary.el (wl-summary-default-subject-filter): Fixed greedy
(when wl-highlight-body-too
(wl-highlight-body))
(run-hooks 'wl-draft-preview-message-hook))
- (make-local-variable 'kill-buffer-hook)
+ (make-local-hook 'kill-buffer-hook)
(add-hook 'kill-buffer-hook
(lambda ()
(when (get-buffer-window
(delete-window))
(when (get-buffer wl-draft-preview-attributes-buffer-name)
(kill-buffer (get-buffer
- wl-draft-preview-attributes-buffer-name)))))
+ wl-draft-preview-attributes-buffer-name))))
+ nil t)
(if (not wl-draft-preview-attributes)
(message (concat "Recipients: "
(cdr (assq 'recipients attribute-list))))
#'wl-summary-after-resize-function))
(make-local-hook 'change-major-mode-hook)
(add-hook 'change-major-mode-hook #'wl-summary-buffer-detach nil t)
- (add-hook 'kill-buffer-hook #'wl-summary-buffer-detach)
+ (make-local-hook 'kill-buffer-hook)
+ (add-hook 'kill-buffer-hook #'wl-summary-buffer-detach nil t)
;; This hook may contain the function `wl-setup-summary' for reasons
;; of system internal to accord facilities for the Emacs variants.
(run-hooks 'wl-summary-mode-hook))