Variable: eww-before-browse-history-function
eww-before-browse-history-function is a customizable variable defined
in eww.el.gz.
Value
eww-delete-future-history
Documentation
A function to call to update history before browsing to a new page.
EWW provides the following values for this option:
* eww-delete-future-history: Delete any history entries after the
currently-shown one. This is the default behavior, and works the same
as in most other web browsers.
* eww-clone-previous-history: Clone and prepend any history entries up
to the currently-shown one. This is like eww-delete-future-history,
except that it preserves the previous contents of the history list at
the end.
* ignore: Preserve the current history unchanged. This will result in
the new page simply being prepended to the existing history list.
You can also set this to any other function you wish.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defcustom eww-before-browse-history-function #'eww-delete-future-history
"A function to call to update history before browsing to a new page.
EWW provides the following values for this option:
* `eww-delete-future-history': Delete any history entries after the
currently-shown one. This is the default behavior, and works the same
as in most other web browsers.
* `eww-clone-previous-history': Clone and prepend any history entries up
to the currently-shown one. This is like `eww-delete-future-history',
except that it preserves the previous contents of the history list at
the end.
* `ignore': Preserve the current history unchanged. This will result in
the new page simply being prepended to the existing history list.
You can also set this to any other function you wish."
:version "30.1"
:type '(choice (function-item :tag "Delete future history"
eww-delete-future-history)
(function-item :tag "Clone previous history"
eww-clone-previous-history)
(function-item :tag "Preserve history"
ignore)
(function :tag "Custom function")))