* mu4e-view.el: make the open-in-emacs attachment temp files read-only
This commit is contained in:
@ -700,7 +700,11 @@ attachments) in response to a (mu4e-proc-extract 'temp ... )."
|
|||||||
(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)
|
||||||
|
;; make the buffer read-only since it usually does not make
|
||||||
|
;; sense to edit the temp buffer; use C-x C-q if you insist...
|
||||||
|
(setq buffer-read-only t)
|
||||||
|
)
|
||||||
(t (error "Unsupported action %S" what))))
|
(t (error "Unsupported action %S" what))))
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user