From: Chong Yidong Date: Sat, 20 Dec 2008 21:40:38 +0000 (+0000) Subject: (pmail): Ensure that pmail-mode-hook is run. X-Git-Tag: emacs-pretest-23.0.90~929 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e1b5cde6f62c90119af3f45c5988c64e55edee2;p=emacs.git (pmail): Ensure that pmail-mode-hook is run. --- diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el index 76949ff95ce..b548a69ca79 100644 --- a/lisp/mail/pmail.el +++ b/lisp/mail/pmail.el @@ -875,6 +875,8 @@ If `pmail-display-summary' is non-nil, make a summary for this PMAIL file." (pmail-swap-buffers-maybe) (if (eq major-mode 'pmail-edit-mode) (error "Exit Pmail Edit mode before getting new mail")) + (or (and existed (> (buffer-size) 0)) + (setq run-mail-hook t)) ;; Insure that the Rmail file is in mbox format, the buffer is in ;; Pmail mode and has been scanned to find all the messages ;; (setting the global message variables in the process).