From 5e1b5cde6f62c90119af3f45c5988c64e55edee2 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 20 Dec 2008 21:40:38 +0000 Subject: [PATCH] (pmail): Ensure that pmail-mode-hook is run. --- lisp/mail/pmail.el | 2 ++ 1 file changed, 2 insertions(+) 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). -- 2.39.2