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

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

[elpa] externals/autocrypt 211cb302dc 41/94: Add autocrypt-load-system


From: ELPA Syncer
Subject: [elpa] externals/autocrypt 211cb302dc 41/94: Add autocrypt-load-system
Date: Sun, 26 Mar 2023 07:57:59 -0400 (EDT)

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

    Add autocrypt-load-system
    
    Each system can define this method to load everything it need to
    operate.
---
 autocrypt.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/autocrypt.el b/autocrypt.el
index 5fb18d5532..ef65a0f603 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -102,6 +102,9 @@ Every member of this list has to be an instance of the
 
 ;;; MUA TRANSLATION LAYER
 
+(cl-defgeneric autocrypt-load-system (mode)
+  "Load autocrypt methods for MODE."
+  (ignore mode))
 
 (cl-defgeneric autocrypt-mode-hooks (mode)
   "Return a list of hooks for MODE that process headers.")
@@ -502,6 +505,7 @@ mode."
   (if autocrypt-mode
       (progn
         (autocrypt-load-data)
+        (autocrypt-load-system major-mode)
         (autocrypt-install major-mode))
     (autocrypt-uninstall major-mode)))
 



reply via email to

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