From 20568cba70aa6cb76374b2933b5df39d3263effe Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 24 Jan 2022 18:57:45 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index bfd6ce4d..03c34f6b 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -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