Function: www-eww-browse-url
www-eww-browse-url is an autoloaded and byte-compiled function defined
in hsys-www.el.
Signature
(www-eww-browse-url URL &optional NEW-WINDOW)
Documentation
Ask the eww browser to load URL only when hyperbole-mode(var)/hyperbole-mode(fun) is active.
Interactively, if the variable browse-url-new-window-flag is non-nil,
loads the document in a new buffer tab on the window tab-line. A non-nil
prefix argument reverses the effect of browse-url-new-window-flag.
If tab-bar-mode(var)/tab-bar-mode(fun) is enabled, then whenever a document would
otherwise be loaded in a new buffer, it is loaded in a new tab
in the tab-bar on an existing frame. See more options in
eww-browse-url-new-window-is-tab.
Non-interactively, this uses the optional second argument NEW-WINDOW
instead of browse-url-new-window-flag.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-www.el
;;;###autoload
(defun www-eww-browse-url (url &optional new-window)
"Ask the eww browser to load URL only when `hyperbole-mode' is active.
Interactively, if the variable `browse-url-new-window-flag' is non-nil,
loads the document in a new buffer tab on the window tab-line. A non-nil
prefix argument reverses the effect of `browse-url-new-window-flag'.
If `tab-bar-mode' is enabled, then whenever a document would
otherwise be loaded in a new buffer, it is loaded in a new tab
in the tab-bar on an existing frame. See more options in
`eww-browse-url-new-window-is-tab'.
Non-interactively, this uses the optional second argument NEW-WINDOW
instead of `browse-url-new-window-flag'."
(require 'eww)
(when (and new-window
(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)))
(let ((hpath:display-where-alist
(if new-window 'other-window hpath:display-where-alist)))
(hpath:display-buffer
(generate-new-buffer
(format "*eww-%s*" (url-host (url-generic-parse-url
(eww--dwim-expand-url url)))))))
(eww-mode)
(defvar url-allow-non-local-files) ; Defined from Emacs 29.
(let ((url-allow-non-local-files t))
(eww url)))