Function: xwidget-webkit-bookmark-jump-handler

xwidget-webkit-bookmark-jump-handler is an autoloaded and byte-compiled function defined in xwidget.el.gz.

Signature

(xwidget-webkit-bookmark-jump-handler BOOKMARK)

Documentation

Jump to the web page bookmarked by the bookmark record BOOKMARK.

If xwidget-webkit-bookmark-jump-new-session is non-nil, create a new xwidget-webkit session, otherwise use an existing session.

Source Code

;; Defined in /usr/src/emacs/lisp/xwidget.el.gz
;;;###autoload
(defun xwidget-webkit-bookmark-jump-handler (bookmark)
  "Jump to the web page bookmarked by the bookmark record BOOKMARK.
If `xwidget-webkit-bookmark-jump-new-session' is non-nil, create
a new xwidget-webkit session, otherwise use an existing session."
  (let* ((url (bookmark-prop-get bookmark 'page))
	 (xwbuf (if (or xwidget-webkit-bookmark-jump-new-session
                        (not (xwidget-webkit-current-session)))
                    (xwidget-webkit--create-new-session-buffer url)
                  (xwidget-buffer (xwidget-webkit-current-session)))))
    (with-current-buffer xwbuf
      (xwidget-webkit-goto-uri (xwidget-webkit-current-session) url))
    (set-buffer xwbuf)))