summaryrefslogtreecommitdiff
path: root/lisp/net/eww.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-12-19 13:44:21 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-12-19 13:44:21 +0100
commit7904cae492062ac70ae1539be5b21c5274dcdf46 (patch)
tree9fa5bdd4fe71a12fe8e9380543db46aa0c871e67 /lisp/net/eww.el
parentae289486d039a443f74420f091a674a19ec9f378 (diff)
downloademacs-7904cae492062ac70ae1539be5b21c5274dcdf46.tar.gz
emacs-7904cae492062ac70ae1539be5b21c5274dcdf46.tar.bz2
emacs-7904cae492062ac70ae1539be5b21c5274dcdf46.zip
Rework how shr sets <span id='foo'> targets to make it more reliable
* lisp/net/eww.el (eww-display-html): The target is now a list. * lisp/net/shr.el (shr--link-targets): New variable. (shr-insert-document): Set the targets. (shr-descend): Save targets and apply them later. (shr-ensure-paragraph): Remove hack to avoid filling from removing targets. (shr-tag-a): Save targets for later. (shr-render-td-1): Bind and set targets (bug#52512).
Diffstat (limited to 'lisp/net/eww.el')
-rw-r--r--lisp/net/eww.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 0c66cf3a0d7..8930eb427d2 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -710,7 +710,7 @@ The renaming scheme is performed in accordance with
(shr-target-id
(goto-char (point-min))
(let ((match (text-property-search-forward
- 'shr-target-id shr-target-id t)))
+ 'shr-target-id shr-target-id #'member)))
(when match
(goto-char (prop-match-beginning match)))))
(t