shr.el (shr-image-displayer): Don't remove text props from alt text.
+2011-05-13 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * gnus-html.el (gnus-html-put-image): Register a displayer.
+
+ * shr.el (shr-image-displayer): Don't remove text props from alt text.
+
2011-05-13 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (prune-factor): New initialization parameter defaulting
(gnus-put-text-property start (point)
'gnus-alt-text alt-text)
(when url
- (gnus-put-text-property start (point)
- 'image-url url))
+ (gnus-add-text-properties
+ start (point)
+ `(image-url
+ ,url
+ image-displayer
+ (lambda (url start end)
+ (gnus-html-display-image ,url ,start ,(point)
+ ,alt-text)))))
(gnus-add-image 'external image)
t)
;; Bad image, try to show something else
(when image
(goto-char start)
(funcall shr-put-image-function
- image (buffer-substring-no-properties start end))
+ image (buffer-substring start end))
(delete-region (point) end))))
(url-retrieve url 'shr-image-fetched
(list (current-buffer) start end)