mu4e-view: open tmp files read-only

When using the "open-in-emacs" handler, open the temp file as read-only. It's a
temp file, so editing isn't very useful.
This commit is contained in:
Dirk-Jan C. Binnema 2022-01-24 18:57:45 +02:00
parent de3c9a25e8
commit 20568cba70
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ containing commas."
(:name "line-count" :handler "wc -l" :receives pipe)
;; open in this emacs instance; tries to use the attachment name,
;; so emacs can use specific modes etc.
(:name "emacs" :handler find-file :receives temp)
(:name "emacs" :handler find-file-read-only :receives temp)
;; open in this emacs instance, "raw"
(:name "raw" :handler (lambda (str)
(let ((tmpbuf