From: Richard M. Stallman Date: Mon, 18 Jan 1999 02:32:36 +0000 (+0000) Subject: (rmail-quit): run `rmail-quit-hook'. X-Git-Tag: emacs-20.4~839 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd5ee393a8c4dc4fb165a2c626837241cc8924c4;p=emacs.git (rmail-quit): run `rmail-quit-hook'. --- diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 25380f17c59..f9f092f8679 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1022,9 +1022,12 @@ Instead, these commands are available: (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)