Function: browse-url-qutebrowser

browse-url-qutebrowser is an interactive and byte-compiled function defined in browse-url.el.gz.

Signature

(browse-url-qutebrowser URL &optional NEW-WINDOW)

Documentation

Ask the Qutebrowser WWW browser to load URL.

Default to the URL around or before point.

When called interactively, if variable browse-url-new-window-flag is non-nil, load the document in a new Qutebrowser window, otherwise use a random existing one. A non-nil interactive prefix argument reverses the effect of browse-url-new-window-flag.

If browse-url-qutebrowser-new-window-is-tab is non-nil, then whenever a document would otherwise be loaded in a new window, it is loaded in a new tab in an existing window instead.

When called non-interactively, optional second argument NEW-WINDOW is used instead of browse-url-new-window-flag.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
(defun browse-url-qutebrowser (url &optional new-window)
  "Ask the Qutebrowser WWW browser to load URL.
Default to the URL around or before point.

When called interactively, if variable `browse-url-new-window-flag' is
non-nil, load the document in a new Qutebrowser window, otherwise use a
random existing one.  A non-nil interactive prefix argument reverses
the effect of `browse-url-new-window-flag'.

If `browse-url-qutebrowser-new-window-is-tab' is non-nil, then whenever a
document would otherwise be loaded in a new window, it is loaded in a
new tab in an existing window instead.

When called non-interactively, optional second argument NEW-WINDOW is
used instead of `browse-url-new-window-flag'."
  (interactive (browse-url-interactive-arg "URL: "))
  (let ((cmd (concat ":open "
                     (and (browse-url-maybe-new-window new-window)
                          (if browse-url-qutebrowser-new-window-is-tab
                              "-t " "-w "))
                     (browse-url-encode-url url))))
    (condition-case nil
        (browse-url-qutebrowser-send cmd)
      (error
       (apply #'start-process (concat "qutebrowser " url) nil
              browse-url-qutebrowser-program
              (append browse-url-qutebrowser-arguments (list cmd)))))))