branch: externals/autocrypt
commit 4824fb6e4b0a4fe5cfa7b30c5cd5a47cc2999f20
Author: Thierry Volpiatto <[email protected]>
Commit: Philip K <[email protected]>
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)