Support indirection for all shr-tag-* calls
commite3f4b71c9de72bce59b4b7cb71627b626e82b573
authorVasilij Schneidermann <mail@vasilij.de>
Thu, 5 Oct 2017 10:00:13 +0000 (5 13:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 5 Oct 2017 10:00:13 +0000 (5 13:00 +0300)
treea140062603a47e4be10d38326eaabb24e9889bbb
parent1c66720f3b2308acae4ed91cb65859c2bd7965ee
Support indirection for all shr-tag-* calls

The 'shr-external-rendering-functions' variable was previously only
honored in the shr-descend function, now all direct calls to the
shr-tag-* functions have been replaced by a call to
'shr-indirect-call' which tries using an alternative rendering
function first.

* lisp/net/shr.el (shr-indirect-call): New helper function.
(shr-descend, shr-tag-object, shr-tag-video):
(shr-collect-extra-strings-in-table): Fix callers to call via
shr-indirect-call.  (Bug#28402)
lisp/net/shr.el