diff options
| author | Chong Yidong | 2006-02-09 19:34:08 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-02-09 19:34:08 +0000 |
| commit | fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b (patch) | |
| tree | 858ec41de7efcc84f99deab8dc31f09f6d589708 | |
| parent | d2ea84be64e6ca1b82033f63ab7f3284515c173b (diff) | |
| download | emacs-fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b.tar.gz emacs-fcfc4732e0d93a6ad6ce11b79ddd372cf8ae738b.zip | |
* image-mode.el (image-toggle-display): Clear image cache if using
filename.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/image-mode.el | 3 |
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 @@ | |||
| 1 | 2006-02-09 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * image-mode.el (image-toggle-display): Clear image cache if using | ||
| 4 | filename. | ||
| 5 | |||
| 1 | 2006-02-09 Masatake YAMATO <jet@gyve.org> | 6 | 2006-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))) |