* net/shr.el (shr-tag-img): Prefer the title over the alt text.

Fixes: debbugs:16537
This commit is contained in:
Adam Sjøgren 2014-01-24 17:52:16 -07:00 committed by Lars Ingebrigtsen
parent c13b1a2dbf
commit 35408b1a6c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-01-25 Adam Sjøgren <asjo@koldfront.dk>
* net/shr.el (shr-tag-img): Prefer the title over the alt text
(bug#16537).
2014-01-24 Juanma Barranquero <lekktu@gmail.com>
* net/eww.el (eww-download-callback):

View file

@ -1228,7 +1228,9 @@ The preference is a float determined from `shr-prefer-media-type'."
(put-text-property start (point) 'image-url url)
(put-text-property start (point) 'image-displayer
(shr-image-displayer shr-content-function))
(put-text-property start (point) 'help-echo alt))
(put-text-property start (point) 'help-echo
(or (cdr (assq :title cont))
alt)))
(setq shr-state 'image)))))
(defun shr-tag-pre (cont)