From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Yuchen Pei Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 06:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50500@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.16312562366542 (code B ref -1); Fri, 10 Sep 2021 06:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2021 06:43:56 +0000 Received: from localhost ([127.0.0.1]:36720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOaGS-0001hR-Ce for submit@debbugs.gnu.org; Fri, 10 Sep 2021 02:43:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:49224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOaGQ-0001hJ-0F for submit@debbugs.gnu.org; Fri, 10 Sep 2021 02:43:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOaGP-0004M3-NT for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 02:43:53 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:44103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOaGM-00017b-QL for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 02:43:53 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 34A153200929 for ; Fri, 10 Sep 2021 02:43:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 10 Sep 2021 02:43:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.me; h=from :to:subject:date:message-id:mime-version:content-type; s=fm2; bh=6twl4LcvzxJuAzst9QbcZ5Q84nGWkVxvhFGP9r1oKCg=; b=lGWAWrX2nvB/ WQnm4/d+Caz4UEfVhZpLWoTKnyjwJMNZsECZyNnxiBGF4flfvsvubu4mGJ3wwfvF nVpChhi6tr25ZVEaGzw0TEzQdgvUx18KGDdiHWSeyHfrzkaydE+MdpvPV2okUoUb zaDkigh8ImHxjgcRiFkVhgLNiZBnhn6jLzsArvMyj+x6UGhlaW34vLiDcQ+gy1GE S/KKK5y7qTJ3y6Wpdm0PPAOVUNd02p8P8IxGc9pfbvpMqPPr4OIbwHWbwQ4MMMYT WF1HGqQ2OO6oghY7re0B9tj/WrP0opG9L3Vg0Gq9IDz6xEXgPEImOaycSjNzb0bD 7Lz2mpZCug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=6twl4LcvzxJuAzst9QbcZ5Q84nGWk VxvhFGP9r1oKCg=; b=dqjfYWXPvVZo1EJ8NS1Fkw2KKbaxqfQf2Atm8nPrWDvnA rp0ao+6DlvngiRPZkWUAxgbyM1+okdM/g/D2xUUcyaenVcSGK3vWm5HQAATQ0abM H76bqEkjzxZNUm6S5qldMVTKB8w/TikZebbVGOKD50mdPejxryyfY2FfwacJl8Qi 4mEJouNAZXqKgeyCD2wRuKeeWfIfyQMTlnkLvWDvMFAZcBkL3H9WOeAH4503V29d 7C713b+Z3Sv/hthptx0DDp3L8Crqzb//4ONXQsZjnYtA5OoEHDvB14UYGYJhT50a e/ki1qKqD8GX6y7bCie3qrlajkiO4mf51g43DklBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegtddguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehgtderre dtredtnecuhfhrohhmpegjuhgthhgvnhcurfgvihcuoehhiheshihpvghirdhmvgeqnecu ggftrfgrthhtvghrnhephfdvudduhffhtdduleffleeiffeggfehffeghfffudevhfehke euvddtvdeuieefnecuffhomhgrihhnpehgnhhurdhorhhgpdihphgvihdrmhgvnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhiseihphgvih drmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 10 Sep 2021 02:43:45 -0400 (EDT) User-agent: mu4e 1.4.13; emacs 27.2 From: Yuchen Pei Date: Fri, 10 Sep 2021 16:43:40 +1000 Message-ID: <87ilz9x74z.fsf@ypei.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=====-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=64.147.123.25; envelope-from=hi@ypei.me; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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: -2.6 (--) --=====-=-= Content-Type: text/plain; format=flowed Hello, I'd like to add a functionality to copy the bookmark link to the kill ring when the point is on a element with an id attribute. For example, say I am reading , and Section 13 looks interesting which I want to save for reference. By calling the said function while the point is at Section 13, the link is added to the kill ring. I imagine it makes sense to bind it to w when the point is not on a link. I took a look at eww.el and shr.el and I'm not sure where to start to add this functionality. Does anyone have any pointers? -- Best, Yuchen PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0 --=====-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIEEARYIACkWIQRH+dBQHhGIeZBASUEhJn6T74bf0AUCYTr+nAscaGlAeXBlaS5t ZQAKCRAhJn6T74bf0K5LAQCT5zD7hKfm+5Qvwerx9QIsihpkMvJlZSqKgYJMS7XJ bgD/cesIf0OIDWey6WFFJLN0yu2r4T4VxP6Ley8/UVzEcAc= =JuXA -----END PGP SIGNATURE----- --=====-=-=-- From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 11:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuchen Pei Cc: 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.163127255223630 (code B ref 50500); Fri, 10 Sep 2021 11:16:01 +0000 Received: (at 50500) by debbugs.gnu.org; 10 Sep 2021 11:15:52 +0000 Received: from localhost ([127.0.0.1]:37011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOeVb-00068l-SD for submit@debbugs.gnu.org; Fri, 10 Sep 2021 07:15:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOeVb-000637-1S for 50500@debbugs.gnu.org; Fri, 10 Sep 2021 07:15:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jpqeVeCFOHKPLTjDyrU7RkG96NVtW3Mk3m0OavcFLyo=; b=AN4UVVOvQNqRZRSckYUNikW8Al mMHURwN/6zqbDalTyHAYDWmKo0lrUduPX1/dEQxyQ/YNMHzbqiJ7092N1HCTpjnmEMvVxcG4gmjds JqGL/snjMeCGx1wKZR4jiwgTQQAvMNYK3BeFih3Ody65JP/gq9bpi6u4vp2ZEWek0YYM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOeVQ-00036k-PL; Fri, 10 Sep 2021 13:15:43 +0200 From: Lars Ingebrigtsen References: <87ilz9x74z.fsf@ypei.me> Date: Fri, 10 Sep 2021 13:15:40 +0200 In-Reply-To: <87ilz9x74z.fsf@ypei.me> (Yuchen Pei's message of "Fri, 10 Sep 2021 16:43:40 +1000") Message-ID: <87o890ptpf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Yuchen Pei writes: > I'd like to add a functionality to copy the bookmark link to the kill > ring when the point is on a element with an id attribute. > > For example, say I am reading > 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 (---) Yuchen Pei writes: > I'd like to add a functionality to copy the bookmark link to the kill > ring when the point is on a element with an id attribute. > > For example, say I am reading > , and Section 13 looks > interesting which I want to save for reference. By calling the said > function while the point is at Section 13, the link > is added to the > kill ring. Well, people put ids on all kinds of elements, but they're not generally meant to be used for navigation. (I mean, sometimes they are, but statistically speaking, they're not.) So I'm not sure that `w' in general should be doing this in eww. Anybody else got an opinion? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Yuchen Pei Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.163127903624301 (code B ref 50500); Fri, 10 Sep 2021 13:04:02 +0000 Received: (at 50500) by debbugs.gnu.org; 10 Sep 2021 13:03:56 +0000 Received: from localhost ([127.0.0.1]:37232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOgCC-0006Jt-8r for submit@debbugs.gnu.org; Fri, 10 Sep 2021 09:03:56 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOgCA-0006Jg-LP for 50500@debbugs.gnu.org; Fri, 10 Sep 2021 09:03:55 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 78CAD3200A1C; Fri, 10 Sep 2021 09:03:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 10 Sep 2021 09:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.me; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=om7eUl5G2O6ZdmjMZpF1Mi+Zqn EgRJZRoeek8rA1a5U=; b=qZHDV+31/9QdDXdWJ+av0uF2Z8pSlO/wUJWI0DtJMs 47EyqU/DfWXBCKbxkQ1rS9vm/bCCuhwv2J+72SnIpKSOfn+juys8iHL4E5fqtlJD UdXViT9/nCJzZQcDPVr433n2Frtb/NZJYxuh7rezgWA9GLD6yqg6RZDLspy+ax2+ qHnSIFJkio2d08bYQ6oFe2ZAVmc9bSf2gFZpFBz1vmFp9QmMvfvzunX9StXcN+ji Z2+6PdMpqKWhRwyvLnpYSbIkK0AcsEyPyL4ZI3wCofuRJcmHghFm3mFztOSfKkrJ ZuMiV82BYS07ue7AUFBrPAL+AM03rigDWs24IDM612qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=om7eUl 5G2O6ZdmjMZpF1Mi+ZqnEgRJZRoeek8rA1a5U=; b=QTjX+oFNAA3SjDvtAoL4aZ XjpKLe9PcikvsGk1NSHQ3l4xJIA5eRxzGZFxP6WMw96Mpn5a9MVFvtmDit4v7HC5 I1ceEFU2/bSE/GSpHELvdQEqG4y24JYFvNrRRTLgedH/3PJRlZ9ld1jw6DACLhJt 9V7tjK/taLzrxrJTrKO+o6dkW7L+N3VwWY9Nbk7CeEaQEeu4W7bae9CPuIle4E5R JYDndd+/Mt3JUCHPeU0p1zQP6CAXGpNtDBaRALnSoJvq52+YORN0t77KsRl+v95H 1H2TGWCdi1/mfgTbb7b8JKswulZADMqEJT48QscH+13ivlG0QZ7chijum+Uo2ztA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeguddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehgtderredtredtnecuhfhrohhmpegjuhgthhgv nhcurfgvihcuoehhiheshihpvghirdhmvgeqnecuggftrfgrthhtvghrnhepjeeitdelfe fhffehleehveekffehfeeffeetfffgveehvdeihfehvdevuefgkefhnecuffhomhgrihhn pehgnhhurdhorhhgpdihphgvihdrmhgvnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhephhhiseihphgvihdrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Sep 2021 09:03:46 -0400 (EDT) References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> User-agent: mu4e 1.4.13; emacs 27.2 From: Yuchen Pei In-reply-to: <87o890ptpf.fsf@gnus.org> Date: Fri, 10 Sep 2021 23:03:42 +1000 Message-ID: <87sfycwpjl.fsf@ypei.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=====-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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 (-) --=====-=-= Content-Type: text/plain; format=flowed Lars Ingebrigtsen writes: > Yuchen Pei writes: > >> I'd like to add a functionality to copy the bookmark link to >> the kill >> ring when the point is on a element with an id attribute. >> >> For example, say I am reading >> , and Section 13 >> looks >> interesting which I want to save for reference. By calling the >> said >> function while the point is at Section 13, the link >> is added >> to the >> kill ring. > > Well, people put ids on all kinds of elements, but they're not > generally > meant to be used for navigation. (I mean, sometimes they are, > but > statistically speaking, they're not.) > > So I'm not sure that `w' in general should be doing this in eww. > Anybody else got an opinion? Makes sense. How about adding it as a customization variable, so that one can customize whether `w` also includes the id bookmark part and by default it does not. It is often useful to save more precise positions in web page documents. -- Best, Yuchen PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0 --=====-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIEEARYIACkWIQRH+dBQHhGIeZBASUEhJn6T74bf0AUCYTtXrgscaGlAeXBlaS5t ZQAKCRAhJn6T74bf0IYbAQD6rtMHE8CUVAUWvDsLK9E3tZ/yzpcOzSmNRzZAqcRc WAEA3C4AKdGc9UIAXQRZb4yYW/mmINSHgGpi7b72oPcFIwM= =CiuQ -----END PGP SIGNATURE----- --=====-=-=-- From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuchen Pei Cc: Lars Ingebrigtsen , 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.163129081121277 (code B ref 50500); Fri, 10 Sep 2021 16:21:02 +0000 Received: (at 50500) by debbugs.gnu.org; 10 Sep 2021 16:20:11 +0000 Received: from localhost ([127.0.0.1]:39045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOjG6-0005X6-Rg for submit@debbugs.gnu.org; Fri, 10 Sep 2021 12:20:11 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:56389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOjG4-0005WQ-Ap for 50500@debbugs.gnu.org; Fri, 10 Sep 2021 12:20:09 -0400 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 3664C200009; Fri, 10 Sep 2021 16:19:59 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> <87sfycwpjl.fsf@ypei.me> Date: Fri, 10 Sep 2021 19:08:44 +0300 In-Reply-To: <87sfycwpjl.fsf@ypei.me> (Yuchen Pei's message of "Fri, 10 Sep 2021 23:03:42 +1000") Message-ID: <87v938ijxf.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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 (-) >> Well, people put ids on all kinds of elements, but they're not generally >> meant to be used for navigation. (I mean, sometimes they are, but >> statistically speaking, they're not.) >> >> So I'm not sure that `w' in general should be doing this in eww. >> Anybody else got an opinion? > > Makes sense. How about adding it as a customization variable, so that one > can customize whether `w` also includes the id bookmark part and by default > it does not. It is often useful to save more precise positions in web > page documents. The problem is that "id" from such HTML:
13. Use with the GNU Affero General Public License.
is not rendered on UI, so the user doesn't know that here is some "id" available for bookmarking. But, for example, github.com for the sections of the README.org file with ids displays visual indication that looks like a chain icon on the left. If eww will support some visual indication about ids used on the page like github does, then it will make sense also to include the displayed id to the copied link. From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Sep 2021 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Yuchen Pei , 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.163136332132346 (code B ref 50500); Sat, 11 Sep 2021 12:29:01 +0000 Received: (at 50500) by debbugs.gnu.org; 11 Sep 2021 12:28:41 +0000 Received: from localhost ([127.0.0.1]:39673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP27c-0008Pd-Pz for submit@debbugs.gnu.org; Sat, 11 Sep 2021 08:28:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP27b-0008PP-Lp for 50500@debbugs.gnu.org; Sat, 11 Sep 2021 08:28:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yzeea3GhZD3iAEYTPJI4z47vNbVKVKrp58ya0Naxxy8=; b=J7xvxd8WWUZeMTLSd5UDHqFB6u kn6wWA+66aUffRIYMeemFB1o8TwCw/Alpu25BJqv369jSYBwfef5xd6tKECUvHjul6/0Rqie+j00U aLOG4tp2GREVNUaf1rlEolHun1nXDdohN/leKGEQbtybV+EYFUJzv36LegH+gVQsJyjE=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mP27T-0008Oe-8e; Sat, 11 Sep 2021 14:28:33 +0200 From: Lars Ingebrigtsen References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> <87sfycwpjl.fsf@ypei.me> <87v938ijxf.fsf@mail.linkov.net> Date: Sat, 11 Sep 2021 14:28:30 +0200 In-Reply-To: <87v938ijxf.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 10 Sep 2021 19:08:44 +0300") Message-ID: <874karnvo1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > The problem is that "id" from such HTML: > >
13. Use with the GNU Affero General Public License.
> > is not rendered on UI, so the user doesn't know that here is some "id" > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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 (---) Juri Linkov writes: > The problem is that "id" from such HTML: > >
13. Use with the GNU Affero General Public License.
> > is not rendered on UI, so the user doesn't know that here is some "id" > available for bookmarking. But, for example, github.com for the sections > of the README.org file with ids displays visual indication that looks like > a chain icon on the left. If eww will support some visual indication about > ids used on the page like github does, then it will make sense also to > include the displayed id to the copied link. I'm not sure I understand -- do you want eww to have a visual indicator on all HTML elements that have an id? That would be ... weird and ugly, I think? Github doesn't display anything in particular on elements with ids per se -- they do display a link icon on sections, and the sections have ids, but that's because they generated the HTML that way. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Sep 2021 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuchen Pei Cc: 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.1631363680493 (code B ref 50500); Sat, 11 Sep 2021 12:35:02 +0000 Received: (at 50500) by debbugs.gnu.org; 11 Sep 2021 12:34:40 +0000 Received: from localhost ([127.0.0.1]:39680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP2DP-00007t-OA for submit@debbugs.gnu.org; Sat, 11 Sep 2021 08:34:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP2DN-00007f-Fd for 50500@debbugs.gnu.org; Sat, 11 Sep 2021 08:34:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6RKe5OCYm7vDuAfpFhojlEDQqYqvw/fDkwy8bUBsaz0=; b=WA2LZhFTw/FaVTtxhooDXKBtZF lb6WQ5vMdbk0rmhIXdW0gdYHZ0ohSevKuZCcRCMQTYXHFQ2V+Axq7mfnuUzc6l7Dh6Pm06Sp52Ncm TnIbD6s/hsHyF7IHS2JGd6BAA4UhUEXSfmZXjOMtZMPp7oGi4fzhY72cWakKH0G77w38=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mP2DF-0008Sx-AW; Sat, 11 Sep 2021 14:34:31 +0200 From: Lars Ingebrigtsen References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> <87sfycwpjl.fsf@ypei.me> Date: Sat, 11 Sep 2021 14:34:28 +0200 In-Reply-To: <87sfycwpjl.fsf@ypei.me> (Yuchen Pei's message of "Fri, 10 Sep 2021 23:03:42 +1000") Message-ID: <87zgsjmgtn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Yuchen Pei writes: > Makes sense. How about adding it as a customization variable, so that > one can customize whether `w` also includes the id bookmark part and > by default it does not. It is often useful to save more [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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 (---) Yuchen Pei writes: > Makes sense. How about adding it as a customization variable, so that > one can customize whether `w` also includes the id bookmark part and > by default it does not. It is often useful to save more precise > positions in web page documents. Hm... I think it would vary whether a user would want to do this or not. Hm... Perhaps a `C-u' to `eww-copy-page-url' could make the command do this? I don't think any other web browsers offer to make links to random id'd elements in the DOM, do they? id's aren't displayed visually -- they're an internal DOM thing, so the user has no idea whether an element has an id, or whether that id has a semantic meaning or not (they're usually just put on elements so that they can be manipulated from Javascript). So I'm sceptical that this would be useful in practice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Sep 2021 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Yuchen Pei , 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.163138804710282 (code B ref 50500); Sat, 11 Sep 2021 19:21:02 +0000 Received: (at 50500) by debbugs.gnu.org; 11 Sep 2021 19:20:47 +0000 Received: from localhost ([127.0.0.1]:41428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP8YR-0002fm-4P for submit@debbugs.gnu.org; Sat, 11 Sep 2021 15:20:47 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:37173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP8YQ-0002fO-4q for 50500@debbugs.gnu.org; Sat, 11 Sep 2021 15:20:46 -0400 Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C8893100002; Sat, 11 Sep 2021 19:20:38 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> <87sfycwpjl.fsf@ypei.me> <87v938ijxf.fsf@mail.linkov.net> <874karnvo1.fsf@gnus.org> Date: Sat, 11 Sep 2021 22:06:04 +0300 In-Reply-To: <874karnvo1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 11 Sep 2021 14:28:30 +0200") Message-ID: <87ee9vx78j.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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 (-) >> The problem is that "id" from such HTML: >> >>
13. Use with the GNU Affero General Public License.
>> >> is not rendered on UI, so the user doesn't know that here is some "id" >> available for bookmarking. But, for example, github.com for the sections >> of the README.org file with ids displays visual indication that looks like >> a chain icon on the left. If eww will support some visual indication about >> ids used on the page like github does, then it will make sense also to >> include the displayed id to the copied link. > > I'm not sure I understand -- do you want eww to have a visual indicator > on all HTML elements that have an id? That would be ... weird and ugly, > I think? Github doesn't display anything in particular on elements with > ids per se -- they do display a link icon on sections, and the sections > have ids, but that's because they generated the HTML that way. That's why I said "*IF* eww will support some visual indication" :-) But I don't think such visual distraction would be appreciated by users. From unknown Sat Aug 16 19:16:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50500: Add ways to copy id bookmark link in eww Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Yuchen Pei , 50500@debbugs.gnu.org Received: via spool by 50500-submit@debbugs.gnu.org id=B50500.16614390038626 (code B ref 50500); Thu, 25 Aug 2022 14:51:02 +0000 Received: (at 50500) by debbugs.gnu.org; 25 Aug 2022 14:50:03 +0000 Received: from localhost ([127.0.0.1]:50991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oREBG-0002F2-B8 for submit@debbugs.gnu.org; Thu, 25 Aug 2022 10:50:02 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oREBE-0002EQ-Vl for 50500@debbugs.gnu.org; Thu, 25 Aug 2022 10:50:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zARgS0JW7ekK+3YpwjE2ww7mBGjFO8xmYMb+ruXjJw0=; b=D5jzPjR+t7CEv6ohD2d467SmQY ZTk5o7jpAOxv30IN73bTABZRMZlhSBTLBXHBTP2Gwc8nksx4qBqkbUjTIlbA195KH5MdRJT0zMglS dSFxlpDyddEVoEdRCHr0Ezqsc9Oixz5wZ/C4ZinZrj1elrQGlOpTMjEnMe322wSAd6HY=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oREB5-0000Ll-EV; Thu, 25 Aug 2022 16:49:53 +0200 From: Lars Ingebrigtsen In-Reply-To: <87ee9vx78j.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 11 Sep 2021 22:06:04 +0300") References: <87ilz9x74z.fsf@ypei.me> <87o890ptpf.fsf@gnus.org> <87sfycwpjl.fsf@ypei.me> <87v938ijxf.fsf@mail.linkov.net> <874karnvo1.fsf@gnus.org> <87ee9vx78j.fsf@mail.linkov.net> X-Now-Playing: The Notwist's _Shrink_: "N.L." Date: Thu, 25 Aug 2022 16:49:50 +0200 Message-ID: <878rncidip.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > That's why I said "*IF* eww will support some visual indication" :-) > But I don't think such visual distraction would be appreciated by users. Me neither. And without such a display, then users have no idea where the IDs are, which makes copying the #id when hitting `w' odd. (Especially since we for reasons of efficiency only put the id text [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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 (---) Juri Linkov writes: > That's why I said "*IF* eww will support some visual indication" :-) > But I don't think such visual distraction would be appreciated by users. Me neither. And without such a display, then users have no idea where the IDs are, which makes copying the #id when hitting `w' odd. (Especially since we for reasons of efficiency only put the id text properties on the first character of the element that has an id, it'd be pretty random what you get.) So all in all, I don't think this is something we want to add, and I'm therefore closing this bug report. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 25 10:50:09 2022 Received: (at control) by debbugs.gnu.org; 25 Aug 2022 14:50:09 +0000 Received: from localhost ([127.0.0.1]:50994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oREBM-0002FN-SP for submit@debbugs.gnu.org; Thu, 25 Aug 2022 10:50:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oREBL-0002F1-8P for control@debbugs.gnu.org; Thu, 25 Aug 2022 10:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nYM9Y19u1m7qIzS4n0RpFw2bSitlKVuq+fT/35DmdUk=; b=cu8ZvTsFKeLVi8WBcO46/8uPI0 y20p25XldQU2EOFz8KDO8nlnqPkrA4zi1biXF74dJ4AM3F0UVmRCjNht70poVLmmBdyjK3sJc8nUZ kpxWGwpE10nFTfNR1u1U34ukCLqtMo3sVUJ9FBFOzTOl3TxR9tWo0CUXkrC5262VnbJQ=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oREBD-0000Lw-Dm for control@debbugs.gnu.org; Thu, 25 Aug 2022 16:50:01 +0200 Date: Thu, 25 Aug 2022 16:49:57 +0200 Message-Id: <877d2widii.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50500 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 50500 wontfix close 50500 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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: -3.3 (---) tags 50500 wontfix close 50500 quit