Function: shr-maybe-probe-and-copy-url

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

Signature

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

Documentation

Copy the URL under point to the kill ring.

If the URL is already at the front of the kill ring act like shr-probe-and-copy-url, otherwise like shr-copy-url.

Probably introduced at or before Emacs version 26.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-maybe-probe-and-copy-url (url)
  "Copy the URL under point to the kill ring.
If the URL is already at the front of the kill ring act like
`shr-probe-and-copy-url', otherwise like `shr-copy-url'."
  (interactive (list (shr-url-at-point current-prefix-arg)))
  (if (equal url (car kill-ring))
      (shr-probe-and-copy-url url)
    (shr-copy-url url)))