Function: rcirc-browse-url
rcirc-browse-url is an interactive and byte-compiled function defined
in rcirc.el.gz.
Signature
(rcirc-browse-url &optional ARG)
Documentation
Prompt for URL to browse based on URLs in buffer before point.
If ARG is given, opens the URL in a new browser window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-browse-url (&optional arg)
"Prompt for URL to browse based on URLs in buffer before point.
If ARG is given, opens the URL in a new browser window."
(interactive "P")
(let* ((point (point))
(filtered (rcirc-condition-filter
(lambda (x) (>= point (cdr x)))
rcirc-urls))
(completions (mapcar (lambda (x) (car x)) filtered))
(defaults (mapcar (lambda (x) (car x)) filtered)))
(browse-url (completing-read "Rcirc browse-url: "
completions nil nil (car defaults) nil defaults)
arg)))