diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-02-09 19:34:08 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-02-09 19:34:08 +0000 |
commit | fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b (patch) | |
tree | 858ec41de7efcc84f99deab8dc31f09f6d589708 /lisp/image-mode.el | |
parent | d2ea84be64e6ca1b82033f63ab7f3284515c173b (diff) | |
download | emacs-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.el | 3 |
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))) |