changeset 70943:488f02720eed

* image-mode.el (image-toggle-display): Use buffer contents to generate image for a remote file.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 26 May 2006 03:34:33 +0000
parents 8e80bce30fa0
children 2e73c646b9df
files lisp/ChangeLog lisp/image-mode.el
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri May 26 03:33:32 2006 +0000
+++ b/lisp/ChangeLog	Fri May 26 03:34:33 2006 +0000
@@ -1,3 +1,8 @@
+2006-05-25  Chong Yidong  <cyd@stupidchicken.com>
+
+	* image-mode.el (image-toggle-display): Use buffer contents to
+	generate image for a remote file.
+
 2006-05-25  Juri Linkov  <juri@jurta.org>
 
 	* replace.el (query-replace-read-from, query-replace-read-to):
--- a/lisp/image-mode.el	Fri May 26 03:33:32 2006 +0000
+++ b/lisp/image-mode.el	Fri May 26 03:34:33 2006 +0000
@@ -139,6 +139,7 @@
     ;; 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))