]> git.eshelyaron.com Git - emacs.git/commitdiff
* image-mode.el (image-toggle-display): Clear image cache if using
authorChong Yidong <cyd@stupidchicken.com>
Thu, 9 Feb 2006 19:34:08 +0000 (19:34 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 9 Feb 2006 19:34:08 +0000 (19:34 +0000)
filename.

lisp/ChangeLog
lisp/image-mode.el

index e5cc3af773c9fa254d3d9cd60d31925531241cbd..eb76a4bc56d9299849e8bb561fcf46c174a7198f 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-09  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image-mode.el (image-toggle-display): Clear image cache if using
+       filename.
+
 2006-02-09 Masatake YAMATO  <jet@gyve.org>
 
        * dired-x.el (dired-guess-shell-alist-default): Add .man as
index e49ca27db7283a775dad18945225f48f6c734e21..258f852a4d68fdf371aa9362ebcb8b636e80b377 100644 (file)
@@ -140,7 +140,8 @@ and showing the image as an image."
     (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)))