summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-11-09 21:16:35 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-11-09 21:17:09 +0200
commitd2d9585f756259fda1c05fe6c9c25b9bf3d7679b (patch)
treeb0391774ce36af06b9a8d3e20a7dbce499d87c5b
parentcfd327b98c964c2d186eb7ef97389da67bd84375 (diff)
mu4e-view: assign gnus-article-buffer in mu4e-view-mode
Some external programs (such as bbdb) seems to depend on that.
-rw-r--r--mu4e/mu4e-view.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el
index 831cd98..c09d17f 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)