* mu4e-view.el: make sure the output buffer is writable

This commit is contained in:
djcb
2012-04-16 19:33:49 +03:00
parent 1a53158bce
commit 95e49a33c4

View File

@ -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))))