* image-mode.el (image-toggle-display): Clear image cache if using

filename.
This commit is contained in:
Chong Yidong 2006-02-09 19:34:08 +00:00
parent d2ea84be64
commit fcfc4732e0
2 changed files with 7 additions and 1 deletions

View 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

View 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)))