# HG changeset patch # User Richard M. Stallman # Date 916626756 0 # Node ID ec89235ef2a629043beec14be6133dc31ab77374 # Parent e1e1bb544d84811e34adafcd64ec3570ef4df731 (rmail-quit): run `rmail-quit-hook'. diff -r e1e1bb544d84 -r ec89235ef2a6 lisp/mail/rmail.el --- 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)