1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 22:40:46 -08:00
emacs/doc
Jim Porter 59e470dd5d When navigating through history in EWW, don't keep adding to 'eww-history'
This resolves an issue where navigating back and then forward kept
adding new history entries so you could never hit the "end" (bug#69232).

* lisp/net/eww.el (eww-before-browse-history-function): New option.
(eww-history-position): Add docstring.
(eww-mode-map, eww-context-menu): Use correct predicates for when to
enable back/forward.
(eww-save-history): Save history entry in its original place when
viewing a historical page.
(eww--before-browse): New function...
(eww, eww-follow-link, eww-readable): ... call it.
(eww-render): Don't set 'eww-history-position' here...
(eww--before-browse): ... instead, set it here.
(eww-back-url): Set 'eww-history-position' based on the result of
'eww-save-history'.
(eww-forward-url): Set 'eww-history-position' directly, since
'eww-save-history' no longer adds a new entry in this case.
(eww-delete-future-history, eww-clone-previous-history): New functions.

* test/lisp/net/eww-tests.el: New file.

* etc/NEWS: Announce this change.
2024-03-06 14:36:23 -08:00
..
emacs ; Fix markup in last change (bug#68929). 2024-02-17 18:57:12 +02:00
lispintro Fix info-xref-tests 2024-01-13 20:38:34 +02:00
lispref Rename type_hierarchy.* -> elisp_type_hierarchy.* 2024-03-06 17:13:38 +01:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc When navigating through history in EWW, don't keep adding to 'eww-history' 2024-03-06 14:36:23 -08:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00