From 95e49a33c4eec0fbc91f07cd95d99719cc8551f5 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 16 Apr 2012 19:33:49 +0300 Subject: [PATCH] * mu4e-view.el: make sure the output buffer is writable --- emacs/mu4e-view.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs/mu4e-view.el b/emacs/mu4e-view.el index 2c49f63a..5dd1be96 100644 --- a/emacs/mu4e-view.el +++ b/emacs/mu4e-view.el @@ -685,10 +685,11 @@ attachments) in response to a (mu4e-proc-extract 'temp ... )." (concat param " " path))) ((string= what "pipe") ;; 'param' will be the pipe command, path the infile for this - (switch-to-buffer (get-buffer-create "*mu4e-output*")) - (erase-buffer) - (call-process-shell-command param path t t) - (view-mode)) + (let ((inhibit-read-only t)) + (switch-to-buffer (get-buffer-create "*mu4e-output*")) + (erase-buffer) + (call-process-shell-command param path t t) + (view-mode))) ((string= what "emacs") (find-file path)) (t (error "Unsupported action %S" what))))