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

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

[elpa] externals/autocrypt 4824fb6e4b 29/94: Recognize Mu4e as MUA


From: ELPA Syncer
Subject: [elpa] externals/autocrypt 4824fb6e4b 29/94: Recognize Mu4e as MUA
Date: Sun, 26 Mar 2023 07:57:58 -0400 (EDT)

branch: externals/autocrypt
commit 4824fb6e4b0a4fe5cfa7b30c5cd5a47cc2999f20
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Recognize Mu4e as MUA
    
    mu4e is often used with mu4e-view-gnus option that display mail in a
    gnus derived mode buffer, in this case gnus is always used and mu4e
    skipped, this patch allows not missing mu4e by chnaging order of cond 
clauses.
---
 autocrypt.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autocrypt.el b/autocrypt.el
index e3a27135d2..97e88c1bd5 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -156,14 +156,14 @@ the part contents can be found.")
 The key should identify a record in the
 `autocrypt-mua-func-alist' alist."
   (cond
+   ((derived-mode-p 'mu4e-main-mode 'mu4e-view-mode)
+    'mu4e)
    ((derived-mode-p 'gnus-mode)
     'gnus)
    ((derived-mode-p 'rmail-mode)
     'rmail)
    ((derived-mode-p 'message-mode)
     'message)
-   ((derived-mode-p 'mu4e-main-mode 'mu4e-view-mode)
-    'mu4e)
    (t (user-error "MUA not supported: %s" major-mode))))
 
 (defsubst autocrypt-mua-func (msg)



reply via email to

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