aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-02-09 19:34:08 +0000
committerChong Yidong2006-02-09 19:34:08 +0000
commitfcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b (patch)
tree858ec41de7efcc84f99deab8dc31f09f6d589708
parentd2ea84be64e6ca1b82033f63ab7f3284515c173b (diff)
downloademacs-fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b.tar.gz
emacs-fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b.zip
* image-mode.el (image-toggle-display): Clear image cache if using
filename.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/image-mode.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e5cc3af773c..eb76a4bc56d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-02-09 Chong Yidong <cyd@stupidchicken.com>
2
3 * image-mode.el (image-toggle-display): Clear image cache if using
4 filename.
5
12006-02-09 Masatake YAMATO <jet@gyve.org> 62006-02-09 Masatake YAMATO <jet@gyve.org>
2 7
3 * dired-x.el (dired-guess-shell-alist-default): Add .man as 8 * 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."
140 (let* ((image 140 (let* ((image
141 (if (and (buffer-file-name) 141 (if (and (buffer-file-name)
142 (not (buffer-modified-p))) 142 (not (buffer-modified-p)))
143 (create-image (buffer-file-name)) 143 (progn (clear-image-cache)
144 (create-image (buffer-file-name)))
144 (create-image 145 (create-image
145 (string-make-unibyte 146 (string-make-unibyte
146 (buffer-substring-no-properties (point-min) (point-max))) 147 (buffer-substring-no-properties (point-min) (point-max)))