mu4e-view: insert-file-contents (gnus mode)

It seems the earlier version (using insert-file-contents-literally, then
trying to fix it has some problems)

HT: thierryvolpiatto

Fixes: #1823.
This commit is contained in:
Dirk-Jan C. Binnema 2020-11-11 21:57:29 +02:00
parent 6b4770bc48
commit 861194f9a1
1 changed files with 1 additions and 6 deletions

View File

@ -389,12 +389,7 @@ article-mode."
gnus-buttonized-mime-types)))
(switch-to-buffer (get-buffer-create mu4e~view-buffer-name))
(erase-buffer)
(insert-file-contents-literally path)
(unless (message-fetch-field "Content-Type" t)
;; For example, for messages in `mu4e-drafts-folder'
(let ((coding (or (default-value 'buffer-file-coding-system)
'prefer-utf-8)))
(recode-region (point-min) (point-max) coding 'no-conversion)))
(insert-file-contents path)
(setq
gnus-summary-buffer (get-buffer-create " *appease-gnus*")
gnus-original-article-buffer (current-buffer))