Function: eww-bookmark-kill
eww-bookmark-kill is an interactive and byte-compiled function defined
in eww.el.gz.
Signature
(eww-bookmark-kill)
Documentation
Kill the current bookmark.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-bookmark-kill ()
"Kill the current bookmark."
(interactive nil eww-bookmark-mode)
(eww--bookmark-check-order-sort)
(let ((bookmark-at-point (nth 3 (vtable-current-object)))
(position (point)))
(unless bookmark-at-point
(user-error "No bookmark on the current line"))
(forward-line 1)
(push bookmark-at-point eww-bookmark-kill-ring)
(setq eww-bookmarks (delq bookmark-at-point eww-bookmarks))
(eww-write-bookmarks)
(when (= (point) (point-max))
(forward-line -1)) ; don't go outside the vtable, or reverting fails
(vtable-revert-command)
(goto-char position)))