From: Lars Magne Ingebrigtsen Date: Sun, 24 Apr 2011 22:12:21 +0000 (+0000) Subject: shr.el (shr-tag-sup, shr-tag-sub): New functions. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~215^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a3af29290ecf2edc793c4e7c13310985a63ffac0;p=emacs.git shr.el (shr-tag-sup, shr-tag-sub): New functions. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index b683a1563b6..dd079b4f0a1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -2,6 +2,11 @@ * gnus-sum.el (gnus-extra-headers): Bump :version. +2011-04-24 Lars Magne Ingebrigtsen + + * shr.el (shr-tag-sup): New function. + (shr-tag-sub): Ditto. + 2011-04-22 Teodor Zlatanov * gnus-registry.el (gnus-registry-ignore-group-p): Test specifically diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 401ac1a08c6..1f6cb528c5d 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -734,6 +734,16 @@ ones, in case fg and bg are nil." (defun shr-tag-script (cont) ) +(defun shr-tag-sup (cont) + (let ((start (point))) + (shr-generic cont) + (put-text-property start (point) 'display '(raise 0.5)))) + +(defun shr-tag-sub (cont) + (let ((start (point))) + (shr-generic cont) + (put-text-property start (point) 'display '(raise -0.5)))) + (defun shr-tag-label (cont) (shr-generic cont) (shr-ensure-paragraph))