Function: shr-probe-and-copy-url

shr-probe-and-copy-url is an interactive and byte-compiled function defined in shr.el.gz.

Signature

(shr-probe-and-copy-url URL)

Documentation

Copy the URL under point to the kill ring.

Like shr-copy-url, but additionally fetch URL and use its redirection destination if it has one.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-probe-and-copy-url (url)
  "Copy the URL under point to the kill ring.
Like `shr-copy-url', but additionally fetch URL and use its
redirection destination if it has one."
  (interactive (list (shr-url-at-point current-prefix-arg)))
  (if url (shr-probe-url url #'shr-copy-url)
    (shr-copy-url url)))