From f133336a1afc45f4329eb8ed8a1e0e319a4691d9 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Sun, 3 Jul 2022 15:29:44 +0200 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 3c16942e7c0..1671e062b25 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -932,9 +932,9 @@ The renaming scheme is performed in accordance with (defun eww-links-at-point () "Return list of URIs, if any, linked at point." - (remq nil - (list (get-text-property (point) 'shr-url) - (get-text-property (point) 'image-url)))) + (seq-filter #'stringp + (list (get-text-property (point) 'shr-url) + (get-text-property (point) 'image-url)))) (defun eww-view-source () "View the HTML source code of the current page." -- 2.39.2