From fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 9 Feb 2006 19:34:08 +0000 Subject: [PATCH] * image-mode.el (image-toggle-display): Clear image cache if using filename. --- lisp/ChangeLog | 5 +++++ lisp/image-mode.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e5cc3af773c..eb76a4bc56d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-02-09 Chong Yidong + + * image-mode.el (image-toggle-display): Clear image cache if using + filename. + 2006-02-09 Masatake YAMATO * dired-x.el (dired-guess-shell-alist-default): Add .man as 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))) -- 2.39.2