Convert shr.el from using overlays into using text properties
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Jun 2013 09:04:25 +0000 (11:04 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Jun 2013 09:04:25 +0000 (11:04 +0200)
commite64fc4c264019ff9818b7a9a09678a4a34858228
tree4aee12110b2c1e3b8e16a899a4eb1757db7f4b07
parent44cf7e926ddf058f8b88de93f33c9921d291897f
Convert shr.el from using overlays into using text properties

* eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
widget commands, since we're no longer using widgets for links.

* mm-decode.el (mm-convert-shr-links): New function to convert
new-style shr URL links into widgets.
(mm-shr): Use it.

* shr.el (shr-next-link): New command.
(shr-previous-link): New command.
(shr-urlify): Don't use `widget-convert', because that's slow.
(shr-put-color-1): Use `add-face-text-property' instead of overlays,
because collecting the overlays and reapplying them when generating
tables is slow.
(shr-insert-table): Ditto.
lisp/ChangeLog
lisp/eww.el
lisp/mm-decode.el
lisp/shr.el