aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/eww.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index e74f661ac75..97fdabd72bd 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1813,13 +1813,9 @@ If CHARSET is nil then use UTF-8."
1813(defun eww-save-history () 1813(defun eww-save-history ()
1814 (plist-put eww-data :point (point)) 1814 (plist-put eww-data :point (point))
1815 (plist-put eww-data :text (buffer-string)) 1815 (plist-put eww-data :text (buffer-string))
1816 (push eww-data eww-history) 1816 (let ((history-delete-duplicates nil))
1817 (setq eww-data (list :title "")) 1817 (add-to-history 'eww-history eww-data eww-history-limit t))
1818 ;; Don't let the history grow infinitely. We store quite a lot of 1818 (setq eww-data (list :title "")))
1819 ;; data per page.
1820 (when-let* ((tail (and eww-history-limit
1821 (nthcdr eww-history-limit eww-history))))
1822 (setcdr tail nil)))
1823 1819
1824(defvar eww-current-buffer) 1820(defvar eww-current-buffer)
1825 1821