summaryrefslogtreecommitdiff
path: root/lisp/image-mode.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-05-26 03:34:33 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-05-26 03:34:33 +0000
commit4d687160ec47448124bc93ab3aec2b24d49544c0 (patch)
tree8fec0e86de4423c2af88f522a26b1bbf367b1605 /lisp/image-mode.el
parent3165e4509a795c2a9204fda98fa3844fbfcde01a (diff)
downloademacs-4d687160ec47448124bc93ab3aec2b24d49544c0.tar.gz
* image-mode.el (image-toggle-display): Use buffer contents to
generate image for a remote file.
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r--lisp/image-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 1a55676e3c7..66d7fb6c16a 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -139,6 +139,7 @@ and showing the image as an image."
;; was inserted
(let* ((image
(if (and (buffer-file-name)
+ (not (file-remote-p (buffer-file-name)))
(not (buffer-modified-p))
(not (and (boundp 'archive-superior-buffer)
archive-superior-buffer))