mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Fix coding system in `notmuch-show-view-raw-message'
This fixes the known-broken test of viewing 8bit messages added by the previous commit.
This commit is contained in:
parent
f4cdabccd0
commit
5673fdbdfa
2 changed files with 3 additions and 3 deletions
|
@ -1792,11 +1792,12 @@ to show, nil otherwise."
|
|||
(notmuch-show-message-adjust))
|
||||
|
||||
(defun notmuch-show-view-raw-message ()
|
||||
"View the file holding the current message."
|
||||
"View the original source of the current message."
|
||||
(interactive)
|
||||
(let* ((id (notmuch-show-get-message-id))
|
||||
(buf (get-buffer-create (concat "*notmuch-raw-" id "*"))))
|
||||
(call-process notmuch-command nil buf nil "show" "--format=raw" id)
|
||||
(let ((coding-system-for-read 'no-conversion))
|
||||
(call-process notmuch-command nil buf nil "show" "--format=raw" id))
|
||||
(switch-to-buffer buf)
|
||||
(goto-char (point-min))
|
||||
(set-buffer-modified-p nil)
|
||||
|
|
|
@ -128,7 +128,6 @@ EOF
|
|||
test_expect_equal_file OUTPUT EXPECTED
|
||||
|
||||
test_begin_subtest "8bit text message are not decoded when viewing"
|
||||
test_subtest_known_broken
|
||||
test_emacs '(notmuch-show "id:test-plain-8bit@example.com")
|
||||
(notmuch-show-view-raw-message)
|
||||
(test-visible-output "OUTPUT.raw")'
|
||||
|
|
Loading…
Reference in a new issue