Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6019446a
Commit
6019446a
authored
Nov 10, 2014
by
Lars Magne Ingebrigtsen
Browse files
(eww-save-history): Don't let the history grow infinitely.
parent
f4009087
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/net/eww.el
lisp/net/eww.el
+5
-1
No files found.
lisp/ChangeLog
View file @
6019446a
...
...
@@ -5,6 +5,7 @@
variables `eww-current-url', `eww-current-dom',
`eww-current-source', and `eww-current-title'.
(eww-readable): Copy over pertinent data from the parent page.
(eww-save-history): Don't let the history grow infinitely.
* net/eww.el: Remove `eww-next-url', `eww-previous-url',
`eww-up-url', `eww-home-url', `eww-start-url' and
...
...
lisp/net/eww.el
View file @
6019446a
...
...
@@ -1344,7 +1344,11 @@ Differences in #targets are ignored."
(
plist-put
eww-data
:point
(
point
))
(
plist-put
eww-data
:text
(
buffer-string
))
(
push
eww-data
eww-history
)
(
setq
eww-data
(
list
:title
""
)))
(
setq
eww-data
(
list
:title
""
))
;; Don't let the history grow infinitely. We store quite a lot of
;; data per page.
(
when-let
(
tail
(
nthcdr
50
eww-history
))
(
setcdr
tail
nil
)))
(
defun
eww-list-histories
()
"List the eww-histories."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment