summaryrefslogtreecommitdiff
path: root/lisp/image-mode.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-02-09 19:34:08 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-02-09 19:34:08 +0000
commitfcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b (patch)
tree858ec41de7efcc84f99deab8dc31f09f6d589708 /lisp/image-mode.el
parentd2ea84be64e6ca1b82033f63ab7f3284515c173b (diff)
downloademacs-fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b.tar.gz
* image-mode.el (image-toggle-display): Clear image cache if using
filename.
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r--lisp/image-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index e49ca27db72..258f852a4d6 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -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)))