]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
Use `without-restriction` in `with-temporary-notmuch-message-buffer`
[notmuch] / emacs / notmuch-show.el
index 4c0ad74d5043cefcefaa86ab65313660dade6884..14e3c698693e1c1954a5f3682532083e05ab5150 100644 (file)
@@ -864,7 +864,7 @@ will return nil if the CID is unknown or cannot be retrieved."
                    (unless (icalendar-import-buffer file t)
                      (error "Icalendar import error. %s"
                             "See *icalendar-errors* for more information"))
-                   (set-buffer (get-file-buffer file))
+                   (set-buffer (find-buffer-visiting file))
                    (setq result (buffer-substring (point-min) (point-max)))
                    (set-buffer-modified-p nil)
                    (kill-buffer (current-buffer)))