From unknown Fri Jun 20 07:18:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#67602 <67602@debbugs.gnu.org> To: bug#67602 <67602@debbugs.gnu.org> Subject: Status: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. Reply-To: bug#67602 <67602@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:18:57 +0000 retitle 67602 29.1; [PATCH] Add function eww-copy-point-link-url to eww. reassign 67602 emacs submitter 67602 Osmo Karppinen severity 67602 normal tag 67602 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 10:14:01 2023 Received: (at submit) by debbugs.gnu.org; 3 Dec 2023 15:14:01 +0000 Received: from localhost ([127.0.0.1]:60593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9oAS-0003Qa-Lk for submit@debbugs.gnu.org; Sun, 03 Dec 2023 10:14:01 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9oAN-0003QA-3T for submit@debbugs.gnu.org; Sun, 03 Dec 2023 10:13:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9oA0-0000yn-R9 for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 10:13:33 -0500 Received: from fgw22-7.mail.saunalahti.fi ([62.142.5.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9o9y-0001qC-Td for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 10:13:32 -0500 Received: from pm (85-76-13-211-nat.elisa-mobile.fi [85.76.13.211]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id 80d537e0-91ee-11ee-a9de-005056bdf889; Sun, 03 Dec 2023 17:13:25 +0200 (EET) Date: Sun, 03 Dec 2023 17:13:23 +0200 Message-Id: <87msur2ub0.fsf@gmail.com> From: Osmo Karppinen To: bug-gnu-emacs@gnu.org Subject: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: softfail client-ip=62.142.5.83; envelope-from=osmkarp@gmail.com; helo=fgw22-7.mail.saunalahti.fi X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL=0.001, SPOOF_GMAIL_MID=1, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch New function eww-copy-point-link-url will copy URL of link pointed by the pointer to the killring in eww. Patch adds also new key binding for the function and also menuitem. I think that key "c" is go [...] Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (osmkarp[at]gmail.com) 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 SPOOFED_FREEMAIL No description available. 1.0 SPOOF_GMAIL_MID From Gmail but it doesn't seem to be... X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --=-=-= Content-Type: text/plain Tags: patch New function eww-copy-point-link-url will copy URL of link pointed by the pointer to the killring in eww. Patch adds also new key binding for the function and also menuitem. I think that key "c" is good for this operation. Why? Sometimes it is needed to get url from link at the point to your killring. Data behind the url could be in form what eww or emacs can't handle well. So it is not quite handy to load page and then copy it's url to the killring with eww-copy-page-url. GNU Emacs 30.0.50 Development version fb4b0b30a24e on master branch; build date 2023-12-03. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-function-eww-copy-point-link-url-to-eww.patch >From 10c3a26ace07f2e2d9a2c55839c0ccfa3a1fad32 Mon Sep 17 00:00:00 2001 From: Osmo Karppinen Date: Sun, 3 Dec 2023 16:23:36 +0200 Subject: [PATCH] Add function eww-copy-point-link-url to eww. Function will copy URL of link pointed by the pointer to the killring in eww. Also new key binding and menu item added for the function. I think that key "c" is good key for this. --- lisp/net/eww.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 77bb6be..80b56b1 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1102,6 +1102,7 @@ eww-mode-map "&" #'eww-browse-with-external-browser "d" #'eww-download "w" #'eww-copy-page-url + "c" #'eww-copy-point-link-url "A" #'eww-copy-alternate-url "C" #'url-cookie-list "v" #'eww-view-source @@ -1136,6 +1137,7 @@ eww-mode-map ["Download" eww-download t] ["View page source" eww-view-source] ["Copy page URL" eww-copy-page-url t] + ["Copy link URL pointed" eww-copy-point-link-url t] ["List histories" eww-list-histories t] ["Switch to buffer" eww-switch-to-buffer t] ["List buffers" eww-list-buffers t] @@ -1984,6 +1986,17 @@ eww-copy-page-url (message "%s" (plist-get eww-data :url)) (kill-new (plist-get eww-data :url))) +(defun eww-copy-point-link-url () + "Copy the URL of the link pointed by the pointer to the killring." + (interactive nil eww-mode) + (let ((url (get-text-property (point) 'shr-url))) + (if url + (progn + (kill-new url) + (message "%s" url)) + (progn (message "No url at the point.") + nil)))) + (defun eww-download () "Download URL to `eww-download-directory'. Use link at point if there is one, else the current page's URL." -- 2.42.0 --=-=-= Content-Type: text/plain With thanks, Osmo Karppinen --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 12:06:10 2023 Received: (at 67602) by debbugs.gnu.org; 3 Dec 2023 17:06:10 +0000 Received: from localhost ([127.0.0.1]:60730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9pv0-0006aR-7J for submit@debbugs.gnu.org; Sun, 03 Dec 2023 12:06:10 -0500 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]:33881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9puv-0006Zj-VO for 67602@debbugs.gnu.org; Sun, 03 Dec 2023 12:06:08 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 507AD20003; Sun, 3 Dec 2023 17:05:47 +0000 (UTC) From: Juri Linkov To: Osmo Karppinen Subject: Re: bug#67602: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. In-Reply-To: <87msur2ub0.fsf@gmail.com> (Osmo Karppinen's message of "Sun, 03 Dec 2023 17:13:23 +0200") Organization: LINKOV.NET References: <87msur2ub0.fsf@gmail.com> Date: Sun, 03 Dec 2023 19:02:47 +0200 Message-ID: <86bkb79r6w.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 67602 Cc: 67602@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > New function eww-copy-point-link-url will copy URL of link pointed by > the pointer to the killring in eww. Patch adds also new key binding for > the function and also menuitem. I think that key "c" is good for this > operation. Another variant would be to reuse 'eww-copy-page-url' bound to "w", and to copy a link with a prefix argument. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 12:49:06 2023 Received: (at 67602) by debbugs.gnu.org; 3 Dec 2023 17:49:07 +0000 Received: from localhost ([127.0.0.1]:60817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9qaV-0007kg-6u for submit@debbugs.gnu.org; Sun, 03 Dec 2023 12:49:06 -0500 Received: from mail.eshelyaron.com ([107.175.124.16]:44678 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9qaP-0007jw-Ae for 67602@debbugs.gnu.org; Sun, 03 Dec 2023 12:49:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1701625726; bh=8ESjCDMjYgbUh/bzKbVRU6+chZXE/ydxR2IOGTiygWw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Zg8hvEkEFbEBfpM5OhWIOxneo/+bGklaPjWRRSnL8NUZh153/bDN5We5cBxWPfIcT YyMkQiFfljn/4KQm9MWYHZH6SeFsnmXo4Z3lfOfyOkSSxwWRUnas94W70pr6nuoZ3j R4JAMkCCz4txUQJt3oC/jI0y5Dsp/mcdQqdmSXwMm2TV++7eM39uHTS02R3gdTL1D6 rKpYJAHkoZrT/yN8c1UOtlmqyJ6RZwTkR1Xv+GNEAU5N2UGEZXILQ2RgJHl2McINxM 8coj7KhKcUo9eIN+VEy9zDJczwHKoDg/FPgt8LHwyWAdoAx/vLiO9PG6hoJ/cdg9ao cj0zcbWUbg6MQ== From: Eshel Yaron To: Juri Linkov Subject: Re: bug#67602: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. In-Reply-To: <86bkb79r6w.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 03 Dec 2023 19:02:47 +0200") References: <87msur2ub0.fsf@gmail.com> <86bkb79r6w.fsf@mail.linkov.net> Date: Sun, 03 Dec 2023 18:48:41 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67602 Cc: Osmo Karppinen , 67602@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> New function eww-copy-point-link-url will copy URL of link pointed by >> the pointer to the killring in eww. Patch adds also new key binding for >> the function and also menuitem. I think that key "c" is good for this >> operation. > > Another variant would be to reuse 'eww-copy-page-url' bound to "w", > and to copy a link with a prefix argument. I'm think "w" already does that in EWW when point is on a link, no? That's thanks to the fact that SHR renders links with a `keymap` property that binds "w" to `shr-maybe-probe-and-copy-url`. Best, Eshel From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 13:02:57 2023 Received: (at 67602) by debbugs.gnu.org; 3 Dec 2023 18:02:57 +0000 Received: from localhost ([127.0.0.1]:60824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9qnx-00085c-1y for submit@debbugs.gnu.org; Sun, 03 Dec 2023 13:02:57 -0500 Received: from fgw21-7.mail.saunalahti.fi ([62.142.5.82]:40915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9qnr-00085P-Hv for 67602@debbugs.gnu.org; Sun, 03 Dec 2023 13:02:55 -0500 Received: from pm (85-76-13-211-nat.elisa-mobile.fi [85.76.13.211]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id 2459bbfc-9206-11ee-abf4-005056bdd08f; Sun, 03 Dec 2023 20:02:38 +0200 (EET) Date: Sun, 03 Dec 2023 20:02:36 +0200 Message-Id: <87il5f2mgz.fsf@gmail.com> To: Eshel Yaron Subject: Re: bug#67602: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. From: Osmo Karppinen X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: You were right. This case is closed. Documentation is bit misleading. When you Type C-h k and your point is not on link it shows you eww-copy-page-url. And same when you look at your local eww keymap. [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (osmkarp[at]gmail.com) 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 67602 Cc: 67602@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) You were right. This case is closed. Documentation is bit misleading. When you Type C-h k and your point is not on link it shows you eww-copy-page-url. And same when you look at your local eww keymap. It is somehow hard to find that there is eww-link-keymap. With thanks, Osmo Karppinen From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 13:16:49 2023 Received: (at 67602) by debbugs.gnu.org; 3 Dec 2023 18:16:49 +0000 Received: from localhost ([127.0.0.1]:60841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9r1M-0002dC-Pp for submit@debbugs.gnu.org; Sun, 03 Dec 2023 13:16:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9r1K-0002cz-Fb for 67602@debbugs.gnu.org; Sun, 03 Dec 2023 13:16:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9r14-0002cq-RQ; Sun, 03 Dec 2023 13:16:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=m05Y9r7grZDoE4dtIUaMqN03bi77sA4Is5xjrkmdDVA=; b=Smjaf43KSkNV fjVqOLIMLP+Cdlrd3jKMurvcRRElVi/esNm/CJwDs8rQC9Ckv4FICjjKda/xNzNexqeapKy1gd1PS RsfbC9Ai8xlBMOyqtYzLt+pSNFdFdNfZ9YqHs+WJIX0tGB13ilB8znKF+cpbRSBKxoh4qM6EsmE2Z R0edteBwYTTOap5RmmWrLeXzxRefpIO1hJWrRO0Y7WmutKWnzHNGCVYGgb0j93gVY/LuT1wh9j+f9 dsL4kYBe5G/4coA+8W1ed5iPdvsEhNhLxPTs22p7HU7HtboTgPInCAYTbxZ7GxKR5DSWkSG4QSRYQ WbqpRuszAPsr0LMWe1CsFA==; Date: Sun, 03 Dec 2023 20:16:33 +0200 Message-Id: <838r6b6tj2.fsf@gnu.org> From: Eli Zaretskii To: Osmo Karppinen In-Reply-To: <87il5f2mgz.fsf@gmail.com> (message from Osmo Karppinen on Sun, 03 Dec 2023 20:02:36 +0200) Subject: Re: bug#67602: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. References: <87msur2ub0.fsf@gmail.com> <87il5f2mgz.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67602 Cc: 67602@debbugs.gnu.org, me@eshelyaron.com, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 67602@debbugs.gnu.org, Juri Linkov > Date: Sun, 03 Dec 2023 20:02:36 +0200 > From: Osmo Karppinen > > > You were right. This case is closed. Documentation is bit misleading. > When you Type C-h k and your point is not on link it shows you > eww-copy-page-url. And same when you look at your local eww keymap. > It is somehow hard to find that there is eww-link-keymap. EWW has its own manual, and this feature is described there, see the node "Basics". From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 12:28:49 2023 Received: (at control) by debbugs.gnu.org; 6 Dec 2023 17:28:49 +0000 Received: from localhost ([127.0.0.1]:40347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAvhZ-0001v0-GT for submit@debbugs.gnu.org; Wed, 06 Dec 2023 12:28:49 -0500 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]:57949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAvhX-0001ud-RY for control@debbugs.gnu.org; Wed, 06 Dec 2023 12:28:48 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id E7CA52000A for ; Wed, 6 Dec 2023 17:28:29 +0000 (UTC) From: Juri Linkov To: control@debbugs.gnu.org Subject: Re: bug#67602: 29.1; [PATCH] Add function eww-copy-point-link-url to eww. In-Reply-To: <87il5f2mgz.fsf@gmail.com> (Osmo Karppinen's message of "Sun, 03 Dec 2023 20:02:36 +0200") Organization: LINKOV.NET References: <87il5f2mgz.fsf@gmail.com> Date: Wed, 06 Dec 2023 19:27:07 +0200 Message-ID: <86a5qn9s74.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 67602 30.0.50 thanks > You were right. This case is closed. Thanks, now closing. From unknown Fri Jun 20 07:18:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Jan 2024 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator