Function: eww-open-in-new-buffer
eww-open-in-new-buffer is an interactive and byte-compiled function
defined in eww.el.gz.
Signature
(eww-open-in-new-buffer &optional NO-SELECT URL)
Documentation
Fetch URL (interactively, the link at point) into a new EWW buffer.
NO-SELECT non-nil means do not make the new buffer the current buffer.
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-open-in-new-buffer (&optional no-select url)
"Fetch URL (interactively, the link at point) into a new EWW buffer.
NO-SELECT non-nil means do not make the new buffer the current buffer."
(interactive "P")
(if-let* ((url (or url (eww-suggested-uris))))
(if (or (eq eww-browse-url-new-window-is-tab t)
(and (eq eww-browse-url-new-window-is-tab 'tab-bar)
tab-bar-mode))
(let ((tab-bar-new-tab-choice t))
(tab-new)
(eww--open-url-in-new-buffer url)
(when no-select
(tab-bar-switch-to-recent-tab)))
(if no-select
(save-window-excursion (eww--open-url-in-new-buffer url))
(eww--open-url-in-new-buffer url)))
(user-error "No link at point")))