diff options
| author | Lars Magne Ingebrigtsen | 2011-04-24 22:12:21 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-04-24 22:12:21 +0000 |
| commit | a3af29290ecf2edc793c4e7c13310985a63ffac0 (patch) | |
| tree | 037225e25aad797850b2260111fe498c9e311444 | |
| parent | 512e3ae1e91c45a8c49baf1b7ebd09616890b42f (diff) | |
| download | emacs-a3af29290ecf2edc793c4e7c13310985a63ffac0.tar.gz emacs-a3af29290ecf2edc793c4e7c13310985a63ffac0.zip | |
shr.el (shr-tag-sup, shr-tag-sub): New functions.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 10 |
2 files changed, 15 insertions, 0 deletions
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 @@ | |||
| 2 | 2 | ||
| 3 | * gnus-sum.el (gnus-extra-headers): Bump :version. | 3 | * gnus-sum.el (gnus-extra-headers): Bump :version. |
| 4 | 4 | ||
| 5 | 2011-04-24 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 6 | |||
| 7 | * shr.el (shr-tag-sup): New function. | ||
| 8 | (shr-tag-sub): Ditto. | ||
| 9 | |||
| 5 | 2011-04-22 Teodor Zlatanov <tzz@lifelogs.com> | 10 | 2011-04-22 Teodor Zlatanov <tzz@lifelogs.com> |
| 6 | 11 | ||
| 7 | * gnus-registry.el (gnus-registry-ignore-group-p): Test specifically | 12 | * 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." | |||
| 734 | (defun shr-tag-script (cont) | 734 | (defun shr-tag-script (cont) |
| 735 | ) | 735 | ) |
| 736 | 736 | ||
| 737 | (defun shr-tag-sup (cont) | ||
| 738 | (let ((start (point))) | ||
| 739 | (shr-generic cont) | ||
| 740 | (put-text-property start (point) 'display '(raise 0.5)))) | ||
| 741 | |||
| 742 | (defun shr-tag-sub (cont) | ||
| 743 | (let ((start (point))) | ||
| 744 | (shr-generic cont) | ||
| 745 | (put-text-property start (point) 'display '(raise -0.5)))) | ||
| 746 | |||
| 737 | (defun shr-tag-label (cont) | 747 | (defun shr-tag-label (cont) |
| 738 | (shr-generic cont) | 748 | (shr-generic cont) |
| 739 | (shr-ensure-paragraph)) | 749 | (shr-ensure-paragraph)) |