Function: browse-url-generic
browse-url-generic is an autoloaded, interactive and byte-compiled
function defined in browse-url.el.gz.
Signature
(browse-url-generic URL &optional NEW-WINDOW)
Documentation
Ask the WWW browser defined by browse-url-generic-program to load URL.
Default to the URL around or before point. A fresh copy of the
browser is started up in a new process with possible additional arguments
browse-url-generic-args. This is appropriate for browsers which
don't offer a form of remote control.
Probably introduced at or before Emacs version 20.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
;; --- Random browser ---
;;;###autoload
(defun browse-url-generic (url &optional _new-window)
;; new-window ignored
"Ask the WWW browser defined by `browse-url-generic-program' to load URL.
Default to the URL around or before point. A fresh copy of the
browser is started up in a new process with possible additional arguments
`browse-url-generic-args'. This is appropriate for browsers which
don't offer a form of remote control."
(interactive (browse-url-interactive-arg "URL: "))
(if (not browse-url-generic-program)
(error "No browser defined (`browse-url-generic-program')"))
(apply #'call-process browse-url-generic-program nil
0 nil
(append browse-url-generic-args (list url))))