diff options
| -rw-r--r-- | lisp/net/shr.el | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index a8ba2845aa2..567c8b807ff 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -1230,9 +1230,6 @@ ones, in case fg and bg are nil." | |||
| 1230 | (defun shr-tag-s (dom) | 1230 | (defun shr-tag-s (dom) |
| 1231 | (shr-fontize-dom dom 'shr-strike-through)) | 1231 | (shr-fontize-dom dom 'shr-strike-through)) |
| 1232 | 1232 | ||
| 1233 | (defun shr-tag-del (dom) | ||
| 1234 | (shr-fontize-dom dom 'shr-strike-through)) | ||
| 1235 | |||
| 1236 | (defun shr-tag-b (dom) | 1233 | (defun shr-tag-b (dom) |
| 1237 | (shr-fontize-dom dom 'bold)) | 1234 | (shr-fontize-dom dom 'bold)) |
| 1238 | 1235 | ||
| @@ -1252,6 +1249,24 @@ ones, in case fg and bg are nil." | |||
| 1252 | (let ((shr-current-font 'default)) | 1249 | (let ((shr-current-font 'default)) |
| 1253 | (shr-generic dom))) | 1250 | (shr-generic dom))) |
| 1254 | 1251 | ||
| 1252 | (defun shr-tag-ins (cont) | ||
| 1253 | (let* ((start (point)) | ||
| 1254 | (color "green") | ||
| 1255 | (shr-stylesheet (nconc (list (cons 'color color)) | ||
| 1256 | shr-stylesheet))) | ||
| 1257 | (shr-generic cont) | ||
| 1258 | (shr-colorize-region start (point) color | ||
| 1259 | (cdr (assq 'background-color shr-stylesheet))))) | ||
| 1260 | |||
| 1261 | (defun shr-tag-del (cont) | ||
| 1262 | (let* ((start (point)) | ||
| 1263 | (color "red") | ||
| 1264 | (shr-stylesheet (nconc (list (cons 'color color)) | ||
| 1265 | shr-stylesheet))) | ||
| 1266 | (shr-fontize-dom cont 'shr-strike-through) | ||
| 1267 | (shr-colorize-region start (point) color | ||
| 1268 | (cdr (assq 'background-color shr-stylesheet))))) | ||
| 1269 | |||
| 1255 | (defun shr-parse-style (style) | 1270 | (defun shr-parse-style (style) |
| 1256 | (when style | 1271 | (when style |
| 1257 | (save-match-data | 1272 | (save-match-data |