Commit 1721600d authored by Daiki Ueno's avatar Daiki Ueno
Browse files

* lisp/image-mode.el: Support encrypted file

(image-toggle-display-image): Read content from the buffer instead
of the file, if the buffer holds a decrypted data.  (Bug#21870)
parent c9fd597a
......@@ -658,7 +658,12 @@ was inserted."
(not (and (boundp 'archive-superior-buffer)
(not (and (boundp 'tar-superior-buffer)
;; This means the buffer holds the
;; decrypted content (bug#21870).
(not (and (boundp 'epa-file-encrypt-to)
(file-or-data (if data-p
(buffer-substring-no-properties (point-min) (point-max)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment