[PATCH 1/3] emacs: forcibly set notmuch-show-mode after delegating inlining

Subject: [PATCH 1/3] emacs: forcibly set notmuch-show-mode after delegating inlining

Date: Sun, 4 Jul 2021 10:16:37 -0300

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: David Bremner


Some mm-* functions end up calling (gnus-article-mode), which breaks
notmuch.
---
 emacs/notmuch-lib.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index c7bb2091..8ca416d4 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -694,6 +694,8 @@ current buffer, if possible."
 	  (when (mm-inlinable-p handle)
 	    (set-buffer display-buffer)
 	    (mm-display-part handle)
+	    ;; restore major mode if changed by gnus
+	    (notmuch-show-mode)
 	    t))))))
 
 ;;; Generic Utilities
-- 
2.30.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: