Function: eww-previous-bookmark
eww-previous-bookmark is an interactive and byte-compiled function
defined in eww.el.gz.
Signature
(eww-previous-bookmark)
Documentation
Go to the previous bookmark in the list.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-previous-bookmark ()
"Go to the previous bookmark in the list."
(interactive nil eww-bookmark-mode)
(let (fresh-buffer target-bookmark)
(unless (get-buffer "*eww bookmarks*")
(setq fresh-buffer t)
(eww-list-bookmarks t))
(with-current-buffer "*eww bookmarks*"
(when fresh-buffer
(vtable-end-of-table))
;; didn't move to a previous line, because we
;; were already on the first one
(unless (= -1 (forward-line -1))
(setq target-bookmark (nth 3 (vtable-current-object)))))
(unless target-bookmark
(user-error "No previous bookmark"))
(eww-browse-url (plist-get target-bookmark :url))))