* mu4e-view.el: make sure the output buffer is writable
This commit is contained in:
@ -685,10 +685,11 @@ attachments) in response to a (mu4e-proc-extract 'temp ... )."
|
|||||||
(concat param " " path)))
|
(concat param " " path)))
|
||||||
((string= what "pipe")
|
((string= what "pipe")
|
||||||
;; 'param' will be the pipe command, path the infile for this
|
;; 'param' will be the pipe command, path the infile for this
|
||||||
|
(let ((inhibit-read-only t))
|
||||||
(switch-to-buffer (get-buffer-create "*mu4e-output*"))
|
(switch-to-buffer (get-buffer-create "*mu4e-output*"))
|
||||||
(erase-buffer)
|
(erase-buffer)
|
||||||
(call-process-shell-command param path t t)
|
(call-process-shell-command param path t t)
|
||||||
(view-mode))
|
(view-mode)))
|
||||||
((string= what "emacs")
|
((string= what "emacs")
|
||||||
(find-file path))
|
(find-file path))
|
||||||
(t (error "Unsupported action %S" what))))
|
(t (error "Unsupported action %S" what))))
|
||||||
|
|||||||
Reference in New Issue
Block a user