summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/shr.el8
2 files changed, 12 insertions, 0 deletions
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 <asjo@koldfront.dk>
+
+ * shr.el (shr-tag-span): New function.
+
2013-05-18 Glenn Morris <rgm@gnu.org>
* 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))