From 5673fdbdfaabcd5ae2a13f9337b143ebe50b6a83 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 21 Apr 2014 14:37:40 -0400 Subject: 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. --- emacs/notmuch-show.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'emacs') diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index aabe56e2..a9974826 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -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) -- cgit v1.2.3