diff options
| author | Daiki Ueno | 2015-11-17 11:27:51 +0900 |
|---|---|---|
| committer | Daiki Ueno | 2015-11-17 11:27:51 +0900 |
| commit | 58e6235007e6761fb9734b942ecff94bf4e9ba68 (patch) | |
| tree | 3845ad7c82d211fc4c7b33d2638204b39b4c9701 | |
| parent | 937565268a5dc3377d4c9bff6d48eb3645a77160 (diff) | |
| download | emacs-58e6235007e6761fb9734b942ecff94bf4e9ba68.tar.gz emacs-58e6235007e6761fb9734b942ecff94bf4e9ba68.zip | |
* 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)
| -rw-r--r-- | lisp/image-mode.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index e6d6a3edb71..8ef9c277c36 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -658,7 +658,12 @@ was inserted." | |||
| 658 | (not (and (boundp 'archive-superior-buffer) | 658 | (not (and (boundp 'archive-superior-buffer) |
| 659 | archive-superior-buffer)) | 659 | archive-superior-buffer)) |
| 660 | (not (and (boundp 'tar-superior-buffer) | 660 | (not (and (boundp 'tar-superior-buffer) |
| 661 | tar-superior-buffer))))) | 661 | tar-superior-buffer)) |
| 662 | ;; This means the buffer holds the | ||
| 663 | ;; decrypted content (bug#21870). | ||
| 664 | (not (and (boundp 'epa-file-encrypt-to) | ||
| 665 | (local-variable-p | ||
| 666 | 'epa-file-encrypt-to)))))) | ||
| 662 | (file-or-data (if data-p | 667 | (file-or-data (if data-p |
| 663 | (string-make-unibyte | 668 | (string-make-unibyte |
| 664 | (buffer-substring-no-properties (point-min) (point-max))) | 669 | (buffer-substring-no-properties (point-min) (point-max))) |