[PATCH 03/11] emacs: Fix coding system in `notmuch-show-view-raw-message'
Austin Clements writes: > This fixes the known-broken test of viewing 8bit messages added by the > previous commit. I pushed the first 3 patches in the series. d
Re: [PATCH 03/11] emacs: Fix coding system in `notmuch-show-view-raw-message'
Austin Clements writes: > This fixes the known-broken test of viewing 8bit messages added by the > previous commit. I pushed the first 3 patches in the series. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 03/11] emacs: Fix coding system in `notmuch-show-view-raw-message'
Austin Clements writes: > This fixes the known-broken test of viewing 8bit messages added by the > previous commit. this looks OK, but waits on a new version of the test in question? d
Re: [PATCH 03/11] emacs: Fix coding system in `notmuch-show-view-raw-message'
Austin Clements writes: > This fixes the known-broken test of viewing 8bit messages added by the > previous commit. this looks OK, but waits on a new version of the test in question? d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 03/11] 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 +++-- test/T455-emacs-charsets.sh | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 949ac09..2b225df 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1748,11 +1748,12 @@ (defun notmuch-show-previous-open-message () (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) diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh index a42a1d2..3078f9c 100755 --- a/test/T455-emacs-charsets.sh +++ b/test/T455-emacs-charsets.sh @@ -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 at example.com") (notmuch-show-view-raw-message) (test-visible-output "OUTPUT.raw")' -- 1.9.1
[PATCH 03/11] 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 +++-- test/T455-emacs-charsets.sh | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 949ac09..2b225df 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1748,11 +1748,12 @@ (defun notmuch-show-previous-open-message () (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) diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh index a42a1d2..3078f9c 100755 --- a/test/T455-emacs-charsets.sh +++ b/test/T455-emacs-charsets.sh @@ -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-8...@example.com") (notmuch-show-view-raw-message) (test-visible-output "OUTPUT.raw")' -- 1.9.1 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch