From: Chong Yidong Date: Fri, 26 May 2006 03:34:33 +0000 (+0000) Subject: * image-mode.el (image-toggle-display): Use buffer contents to X-Git-Tag: emacs-pretest-22.0.90~2311 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4d687160ec47448124bc93ab3aec2b24d49544c0;p=emacs.git * image-mode.el (image-toggle-display): Use buffer contents to generate image for a remote file. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a5b3f2b8014..76f065bc747 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-05-25 Chong Yidong + + * image-mode.el (image-toggle-display): Use buffer contents to + generate image for a remote file. + 2006-05-25 Juri Linkov * replace.el (query-replace-read-from, query-replace-read-to): 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))