eww anchor pointer movement fixup

* net/eww.el (eww-display-html): If we can't find the anchor we're
looking for, then go to point-min.
This commit is contained in:
Lars Magne Ingebrigtsen 2013-12-17 00:29:47 +01:00
parent 8fb8c4f373
commit 11bade0ad8
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-12-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-display-html): If we can't find the anchor we're
looking for, then go to point-min.
2013-12-16 Paul Eggert <eggert@cs.ucla.edu>
Fix problems with CANNOT_DUMP and EMACSLOADPATH.

View file

@ -271,8 +271,9 @@ word(s) will be searched for via `eww-search-prefix'."
(shr-target-id
(let ((point (next-single-property-change
(point-min) 'shr-target-id)))
(when point
(goto-char (1+ point)))))
(goto-char (if point
(1+ point)
(point-min)))))
(t
(goto-char (point-min)))))
(setq eww-current-url url