master f13363507dc: ; (eww-read-alternate-url): Fix regression with single link.
Eshel Yaron via Mailing list for Emacs changes <[email protected]> Thu, 30 Jul 2026 13:59:53 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit f13363507dcca722d323f34254d1188abae4ac62 Author: Eshel Yaron <[email protected]> Commit: Eshel Yaron <[email protected]> ; (eww-read-alternate-url): Fix regression with single link. In commit aee0e67a we changed 'eww--alternate-urls' to return a list of (propertized) strings rather than an alist, but we didn't properly adapt the just-one-link branch of 'eww-read-alternate-url' accordingly. * lisp/net/eww.el (eww-copy-alternate-url): Fix it. --- lisp/net/eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 631440706e9..e3977233d8b 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -3131,7 +3131,7 @@ with completion. If there are none, return nil." alts `((affixation-function . eww--alternate-urls-affixation))) nil t) ;; Just one alternate link, return it without prompting. - (caar alts)))) + (car alts)))) (defun eww-copy-alternate-url () "Copy the alternate URL of the current page into the kill ring.