changeset 24110:ec89235ef2a6

(rmail-quit): run `rmail-quit-hook'.
author Richard M. Stallman <rms@gnu.org>
date Mon, 18 Jan 1999 02:32:36 +0000
parents e1e1bb544d84
children 212dc05acd10
files lisp/mail/rmail.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Mon Jan 18 01:18:19 1999 +0000
+++ b/lisp/mail/rmail.el	Mon Jan 18 02:32:36 1999 +0000
@@ -1022,9 +1022,12 @@
       (rmail-select-summary (set-buffer-modified-p nil))))
 
 (defun rmail-quit ()
-  "Quit out of RMAIL."
+  "Quit out of RMAIL.
+Hook `rmail-quit-hook' is run after expunging."
   (interactive)
   (rmail-expunge-and-save)
+  (when (boundp 'rmail-quit-hook)
+    (run-hooks 'rmail-quit-hook))
   ;; Don't switch to the summary buffer even if it was recently visible.
   (when rmail-summary-buffer
     (replace-buffer-in-windows rmail-summary-buffer)