From: Adam Sjøgren Date: Sun, 19 May 2013 22:49:17 +0000 (+0000) Subject: lisp/gnus/shr.el (shr-tag-span): New function X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~229^2~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=308c9d248ad5b71eb7215c50b9c7e08a55638355;p=emacs.git lisp/gnus/shr.el (shr-tag-span): New function --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7f6b171f344..8d380695ec1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,7 @@ +2013-05-19 Adam Sjøgren + + * shr.el (shr-tag-span): New function. + 2013-05-18 Glenn Morris * message.el (message-mode): Use message-mode-abbrev-table, diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 5c1b99e7707..2d2272d6c11 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -1088,6 +1088,14 @@ ones, in case fg and bg are nil." (shr-indent)) (shr-generic cont)) +(defun shr-tag-span (cont) + (let ((title (cdr (assq :title cont)))) + (shr-generic cont) + (when title + (when shr-start + (let ((overlay (shr-make-overlay shr-start (point)))) + (overlay-put overlay 'help-echo title)))))) + (defun shr-tag-h1 (cont) (shr-heading cont 'bold 'underline))