Function: eww-read-bookmarks
eww-read-bookmarks is a byte-compiled function defined in eww.el.gz.
Signature
(eww-read-bookmarks &optional ERROR-OUT)
Documentation
Read bookmarks from eww-bookmarks.
If ERROR-OUT, signal user-error if there are no bookmarks.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-read-bookmarks (&optional error-out)
"Read bookmarks from `eww-bookmarks'.
If ERROR-OUT, signal user-error if there are no bookmarks."
(let ((file (expand-file-name "eww-bookmarks" eww-bookmarks-directory)))
(setq eww-bookmarks
(unless (zerop (or (file-attribute-size (file-attributes file)) 0))
(with-temp-buffer
(insert-file-contents file)
(read (current-buffer)))))
(when (and error-out (not eww-bookmarks))
(user-error "No bookmarks are defined"))))