mirror of https://github.com/djcb/mu.git
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:
parent
6b4770bc48
commit
861194f9a1
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue