* net/shr.el (add-face-text-property): Removed compat definition.

This commit is contained in:
Lars Magne Ingebrigtsen 2013-06-27 11:01:08 +02:00
parent d29bf51cef
commit 7f13406b7a
2 changed files with 4 additions and 21 deletions

View file

@ -1,3 +1,7 @@
2013-06-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (add-face-text-property): Removed compat definition.
2013-06-27 Stephen Berman <stephen.berman@gmx.net>
* obsolete/otodo-mode.el: Add obsolescence info to file header.

View file

@ -1606,27 +1606,6 @@ ones, in case fg and bg are nil."
(shr-count (cdr row) 'th))))))
max))
;; Emacs less than 24.3
(unless (fboundp 'add-face-text-property)
(defun add-face-text-property (beg end face &optional appendp object)
"Combine FACE BEG and END."
(let ((b beg))
(while (< b end)
(let ((oldval (get-text-property b 'face)))
(put-text-property
b (setq b (next-single-property-change b 'face nil end))
'face (cond ((null oldval)
face)
((and (consp oldval)
(not (keywordp (car oldval))))
(if appendp
(nconc oldval (list face))
(cons face oldval)))
(t
(if appendp
(list oldval face)
(list face oldval))))))))))
(provide 'shr)
;; Local Variables: