Function: eww-copy-alternate-url

eww-copy-alternate-url is an interactive and byte-compiled function defined in eww.el.gz.

Signature

(eww-copy-alternate-url)

Documentation

Copy the alternate URL of the current page into the kill ring.

If there are multiple alternate links on the current page, prompt for one in the minibuffer, with completion. Alternate links are references that an HTML page may include to point to its alternative representations, such as a translated version or an RSS feed.

Probably introduced at or before Emacs version 30.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-copy-alternate-url ()
  "Copy the alternate URL of the current page into the kill ring.
If there are multiple alternate links on the current page, prompt
for one in the minibuffer, with completion.
Alternate links are references that an HTML page may include to
point to its alternative representations, such as a translated
version or an RSS feed."
  (interactive nil eww-mode)
  (if-let ((url (eww-read-alternate-url)))
      (progn
        (kill-new url)
        (message "Copied %s to kill ring" url))
    (user-error "No alternate links found on this page!")))