From d2d9585f756259fda1c05fe6c9c25b9bf3d7679b Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 9 Nov 2023 21:16:35 +0200 Subject: [PATCH] mu4e-view: assign gnus-article-buffer in mu4e-view-mode Some external programs (such as bbdb) seems to depend on that. --- mu4e/mu4e-view.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 831cd98a..c09d17f5 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -1057,6 +1057,10 @@ Based on Gnus' article-mode." (lambda(func &rest args) (if (mu4e--view-mode-p) "." (apply func args)))) + + ;; some external tools (bbdb) depend on this + (setq gnus-article-buffer (current-buffer)) + (use-local-map mu4e-view-mode-map) (mu4e-context-minor-mode) (mu4e-search-minor-mode)