Mercurial > emacs
diff lisp/mail/rmail.el @ 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 | 3e4e87cddb85 |
children | d0853770c8e7 |
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)