Reset `gnus-article-buffer` in mu4e-view

This is needed when gnus is used along mu4e for other purpose like
reading News, in this case gnus rename `gnus-article-buffer` and we
end up with an unrelated buffer-name in mu4e.
This commit is contained in:
Thierry Volpiatto 2021-09-26 09:16:51 +02:00
parent 91cf2dcec7
commit a6207d6d08
No known key found for this signature in database
GPG Key ID: 08FDB07A7433A7F2
1 changed files with 4 additions and 3 deletions

View File

@ -622,6 +622,7 @@ marking if it still had that."
(when (bufferp gnus-article-buffer)
(kill-buffer gnus-article-buffer))
(setq gnus-article-buffer mu4e-view-buffer-name)
(with-current-buffer (get-buffer-create gnus-article-buffer)
(let ((inhibit-read-only t))
(remove-overlays (point-min)(point-max) 'mu4e-overlay t)