* 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)
This commit is contained in:
parent
937565268a
commit
58e6235007
1 changed files with 6 additions and 1 deletions
|
@ -658,7 +658,12 @@ was inserted."
|
|||
(not (and (boundp 'archive-superior-buffer)
|
||||
archive-superior-buffer))
|
||||
(not (and (boundp 'tar-superior-buffer)
|
||||
tar-superior-buffer)))))
|
||||
tar-superior-buffer))
|
||||
;; This means the buffer holds the
|
||||
;; decrypted content (bug#21870).
|
||||
(not (and (boundp 'epa-file-encrypt-to)
|
||||
(local-variable-p
|
||||
'epa-file-encrypt-to))))))
|
||||
(file-or-data (if data-p
|
||||
(string-make-unibyte
|
||||
(buffer-substring-no-properties (point-min) (point-max)))
|
||||
|
|
Loading…
Add table
Reference in a new issue