emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/autocrypt 13f31c7e45 45/94: Fix autocrypt-rmail


From: ELPA Syncer
Subject: [elpa] externals/autocrypt 13f31c7e45 45/94: Fix autocrypt-rmail
Date: Sun, 26 Mar 2023 07:57:59 -0400 (EDT)

branch: externals/autocrypt
commit 13f31c7e45ef0a7f160f0cf69e30d7e404964ec4
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Fix autocrypt-rmail
---
 autocrypt-rmail.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/autocrypt-rmail.el b/autocrypt-rmail.el
index 514af6cf23..0a2a7f8f32 100644
--- a/autocrypt-rmail.el
+++ b/autocrypt-rmail.el
@@ -24,12 +24,19 @@
 
 (require 'rmail)
 
+
+;;;###autoload
+(cl-defmethod autocrypt-load ((_mode (eql rmail-mode)))
+  "Load this module."
+  (require 'autocrypt-rmail))
+
 ;;;###autoload
-(cl-defmethod autocrypt-mode-hooks ((_mode (derived-mode message-mode)))
+(cl-defmethod autocrypt-mode-hooks ((_mode (eql rmail-mode)))
   "Return the hook to install autocrypt."
+  (require 'autocrypt-mu4e)
   '(rmail-show-message-hook))
 
-(cl-defmethod autocrypt-get-header ((_mode (derived-mode message-mode))
+(cl-defmethod autocrypt-get-header ((_mode (eql rmail-mode))
                                     header)
   "Ask Rmail to return HEADER."
   (rmail-apply-in-message rmail-current-message



reply via email to

[Prev in Thread] Current Thread [Next in Thread]