diff lisp/image-mode.el @ 68749:c0b14a7a6a49

* image-mode.el (image-toggle-display): Clear image cache if using filename.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 09 Feb 2006 19:34:08 +0000
parents 3bd95f4f2941
children 3e313b3afda5
line wrap: on
line diff
--- a/lisp/image-mode.el	Thu Feb 09 19:20:46 2006 +0000
+++ b/lisp/image-mode.el	Thu Feb 09 19:34:08 2006 +0000
@@ -140,7 +140,8 @@
     (let* ((image
 	    (if (and (buffer-file-name)
 		     (not (buffer-modified-p)))
-		(create-image (buffer-file-name))
+		(progn (clear-image-cache)
+		       (create-image (buffer-file-name)))
 	      (create-image
 	       (string-make-unibyte
 		(buffer-substring-no-properties (point-min) (point-max)))