emacs/lisp/net
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
..
ange-ftp.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
browse-url.el Handle /assets and /content file names in `android-browse-url' 2024-02-15 14:24:21 +08:00
dbus.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dictionary-connection.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dictionary.el * lisp/net/dictionary.el: More fixes for dictionary-new-matching (bug#69312) 2024-03-05 18:42:49 +02:00
dig.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dns.el Use obarray-make instead of make-vector to create obarrays 2024-02-23 13:02:27 +01:00
eudc-bob.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudc-capf.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudc-export.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudc-hotlist.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudc-vars.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
eudc.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudcb-bbdb.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudcb-ecomplete.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudcb-ldap.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudcb-mab.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
eudcb-macos-contacts.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eudcb-mailabbrev.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
eww.el When navigating through history in EWW, don't keep adding to 'eww-history' 2024-03-06 14:36:23 -08:00
gnutls.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
goto-addr.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hmac-def.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hmac-md5.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
imap.el Use obarray-make instead of make-vector to create obarrays 2024-02-23 13:02:27 +01:00
ldap.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
mailcap.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
mairix.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
net-utils.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
network-stream.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
newst-backend.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
newst-plainview.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
newst-reader.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
newst-ticker.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
newst-treeview.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
newsticker.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
nsm.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ntlm.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
pop3.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
puny.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rcirc.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
rfc2104.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-cram.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-digest.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-ntlm.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-scram-rfc.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl-scram-sha256.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
secrets.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
shr-color.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
shr.el shr: Correct SVG attribute case 2024-02-01 12:00:25 +02:00
sieve-manage.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sieve-mode.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sieve.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
snmp-mode.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
soap-client.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
soap-inspect.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
socks.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
telnet.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tramp-adb.el Tramp fixes after running regression tests on Android 2024-03-06 17:51:42 +01:00
tramp-androidsu.el Tramp fixes after running regression tests on Android 2024-03-06 17:51:42 +01:00
tramp-archive.el Fix warning in tramp-register-archive-autoload-file-name-handler 2024-02-10 09:50:12 +01:00
tramp-cache.el Adapt cache handling in Tramp 2024-02-05 12:54:56 +01:00
tramp-cmds.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tramp-compat.el ; Copyedits 2024-02-20 12:53:15 +01:00
tramp-container.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
tramp-crypt.el ; Fix typos 2024-01-20 21:15:35 +01:00
tramp-ftp.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tramp-fuse.el Sync with Tramp 2.6.3-pre (don't merge with master) 2024-01-20 10:45:27 +01:00
tramp-gvfs.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
tramp-integration.el ; Copyedits 2024-02-20 12:53:15 +01:00
tramp-message.el Declare function properties in Tramp 2024-02-07 13:19:27 +01:00
tramp-rclone.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tramp-sh.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
tramp-smb.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tramp-sshfs.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
tramp-sudoedit.el Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
tramp-uu.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tramp.el Merge from origin/emacs-29 2024-02-24 06:35:16 -05:00
trampver.el Sync with Tramp 2.6.3-pre (don't merge with master) 2024-01-20 10:45:27 +01:00
webjump.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
zeroconf.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00