Convert shr.el from using overlays into using text properties
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Jun 2013 09:19:50 +0000 (09:19 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 17 Jun 2013 09:19:50 +0000 (09:19 +0000)
commit7304e4dd67bb88abadf198f47e75cea971aaa5cc
tree183bd9a84da52497ce1a012ab3ee0b6bdf3ccfb2
parentd363bffbedce7027288fbe7f05040e4ff71ff4bc
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/gnus/ChangeLog
lisp/gnus/eww.el
lisp/gnus/mm-decode.el
lisp/gnus/shr.el