diff options
| author | Lars Magne Ingebrigtsen | 2010-09-04 00:26:18 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-04 00:26:18 +0000 |
| commit | 28e44fbf620ce0a079e492b3927a28769b318764 (patch) | |
| tree | bd62cd4f248397fc441d9c2de01b4ba69491cd9c | |
| parent | 10e91ca9826f03156ac027ba111a052d888eacf0 (diff) | |
| download | emacs-28e44fbf620ce0a079e492b3927a28769b318764.tar.gz emacs-28e44fbf620ce0a079e492b3927a28769b318764.zip | |
gnus-html.el: Fix up the logic that marks resized images for buffer deletion; Have the image insertion work even if the missing image is in an <a>.
| -rw-r--r-- | lisp/gnus/gnus-html.el | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 4c0d4c0664f..a42cd9309b5 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -161,11 +161,15 @@ fit these criteria." | |||
| 161 | :help-echo url | 161 | :help-echo url |
| 162 | :keymap gnus-html-image-map | 162 | :keymap gnus-html-image-map |
| 163 | :button-keymap gnus-html-image-map) | 163 | :button-keymap gnus-html-image-map) |
| 164 | (gnus-put-text-property | 164 | (let ((overlay (gnus-make-overlay start end)) |
| 165 | start end | 165 | (spec (list url |
| 166 | 'gnus-image (list url | 166 | (set-marker (make-marker) start) |
| 167 | (set-marker (make-marker) start) | 167 | (set-marker (make-marker) end)))) |
| 168 | (set-marker (make-marker) end)))) | 168 | (gnus-overlay-put overlay 'local-map gnus-html-image-map) |
| 169 | (gnus-overlay-put overlay 'gnus-image spec) | ||
| 170 | (gnus-put-text-property | ||
| 171 | start end | ||
| 172 | 'gnus-image spec))) | ||
| 169 | (let ((file (gnus-html-image-id url)) | 173 | (let ((file (gnus-html-image-id url)) |
| 170 | width height) | 174 | width height) |
| 171 | (when (string-match "height=\"?\\([0-9]+\\)" parameters) | 175 | (when (string-match "height=\"?\\([0-9]+\\)" parameters) |
| @@ -292,7 +296,8 @@ fit these criteria." | |||
| 292 | (= (car size) 30) | 296 | (= (car size) 30) |
| 293 | (= (cdr size) 30)))) | 297 | (= (cdr size) 30)))) |
| 294 | (progn | 298 | (progn |
| 295 | (gnus-put-image (gnus-html-rescale-image image file size) | 299 | (setq image (gnus-html-rescale-image image file size)) |
| 300 | (gnus-put-image image | ||
| 296 | (gnus-string-or string "*") | 301 | (gnus-string-or string "*") |
| 297 | 'external) | 302 | 'external) |
| 298 | (gnus-add-image 'external image) | 303 | (gnus-add-image 'external image) |