mu4e-view: assign gnus-article-buffer in mu4e-view-mode

Some external programs (such as bbdb) seems to depend on that.
This commit is contained in:
Dirk-Jan C. Binnema 2023-11-04 10:52:48 +02:00
parent afb98aa62f
commit c3bc50bd02
1 changed files with 3 additions and 0 deletions

View File

@ -1050,6 +1050,9 @@ This is useful for advising some Gnus-functionality that does not work in mu4e."
(define-derived-mode mu4e-view-mode gnus-article-mode "mu4e:view"
"Major mode for viewing an e-mail message in mu4e.
Based on Gnus' article-mode."
;; some external tools (bbdb) depend on this
(setq gnus-article-buffer (current-buffer))
;; ;; turn off gnus modeline changes and menu items
(advice-add 'gnus-set-mode-line :around #'mu4e--view-nop)
(advice-add 'gnus-button-reply :around #'mu4e--view-button-reply)