Function: eww-save-history
eww-save-history is a byte-compiled function defined in eww.el.gz.
Signature
(eww-save-history)
Documentation
Save the current page's data to the history.
If the current page is a historical one loaded from
eww-history (e.g. by calling eww-back-url), this will update the
page's entry in eww-history and return nil. Otherwise, add a new
entry to eww-history and return t.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
;;; History code
(defun eww-save-history ()
"Save the current page's data to the history.
If the current page is a historical one loaded from
`eww-history' (e.g. by calling `eww-back-url'), this will update the
page's entry in `eww-history' and return nil. Otherwise, add a new
entry to `eww-history' and return t."
(plist-put eww-data :point (point))
(plist-put eww-data :text (buffer-string))
(if (zerop eww-history-position)
(let ((history-delete-duplicates nil))
(add-to-history 'eww-history eww-data eww-history-limit t)
(setq eww-history-position 1)
t)
(setf (elt eww-history (1- eww-history-position)) eww-data)
nil))