Subject: bug#56366: 29.0.50; eww: Exclude radio links when suggesting URIs

From: Visuwesh <[email-masked]>
Date: Sun, 03 Jul 2022 18:53:08 +0530

[ஞாயிறு ஜூலை 03, 2022] Lars Ingebrigtsen wrote:

> Visuwesh <[email-masked]> writes:
>
>> The attached patch fixes the error but maybe the right place to fix it
>> is in eww-links-at-point?
>
> Yes, I think that would be better.

How about the attached patch?

>From a3e3755efc251b10a3f95985e6021022845f71eb Mon Sep 17 00:00:00 2001
From: Visuwesh <[email-masked]>
Date: Sun, 3 Jul 2022 18:47:44 +0530
Subject: [PATCH] Exclude radio buttons when suggesting URI in eww

* lisp/net/eww.el (eww-links-at-point): Exclude radio links.
(bug#56366)
---
 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 3c16942e7c..b4606d0221 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -932,7 +932,7 @@ eww-current-url
 
 (defun eww-links-at-point ()
   "Return list of URIs, if any, linked at point."
-  (remq nil
+  (seq-filter #'stringp
 	(list (get-text-property (point) 'shr-url)
 	      (get-text-property (point) 'image-url))))
 
-- 
2.35.1