GNU bug report logs - #50500
Add ways to copy id bookmark link in eww

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Yuchen Pei <hi@HIDDEN>; dated Fri, 10 Sep 2021 06:44:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 50500 <at> debbugs.gnu.org:


Received: (at 50500) by debbugs.gnu.org; 10 Sep 2021 11:15:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 10 07:15:52 2021
Received: from localhost ([127.0.0.1]:37011 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOeVb-00068l-SD
	for submit <at> 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 <larsi@HIDDEN>) id 1mOeVb-000637-1S
 for 50500 <at> 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 <larsi@HIDDEN>)
 id 1mOeVQ-00036k-PL; Fri, 10 Sep 2021 13:15:43 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Yuchen Pei <hi@HIDDEN>
Subject: Re: bug#50500: Add ways to copy id bookmark link in eww
References: <87ilz9x74z.fsf@HIDDEN>
Date: Fri, 10 Sep 2021 13:15:40 +0200
In-Reply-To: <87ilz9x74z.fsf@HIDDEN> (Yuchen Pei's message of "Fri, 10 Sep
 2021 16:43:40 +1000")
Message-ID: <87o890ptpf.fsf@HIDDEN>
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 <hi@HIDDEN> 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 > <http://www.gnu.org/licenses/gpl [...] 
 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: 50500
Cc: 50500 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Yuchen Pei <hi@HIDDEN> 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
> <http://www.gnu.org/licenses/gpl-3.0.html>, 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
> <http://www.gnu.org/licenses/gpl-3.0.html#section13> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50500; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Sep 2021 06:43:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 10 02:43:56 2021
Received: from localhost ([127.0.0.1]:36720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOaGS-0001hR-Ce
	for submit <at> 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 <hi@HIDDEN>) id 1mOaGQ-0001hJ-0F
 for submit <at> 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 <hi@HIDDEN>) id 1mOaGP-0004M3-NT
 for bug-gnu-emacs@HIDDEN; 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 <hi@HIDDEN>) id 1mOaGM-00017b-QL
 for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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: <xms:ov46YfRT1UMnFiSgnc0Nplm7z3IFfUi_JHzro21JXOEoK-xbnpLLUg>
 <xme:ov46YQwTKND4I1Qrv9crQa5bLGkmMVcba53A7Vmu0OFX6IddvH8VWpY9UP5Kn7dOd
 1nilQYdlMFhAzqvPQ>
X-ME-Received: <xmr:ov46YU08nZDmM8GRfZlW0Ke3uEWwPAlTrbbXTxiJ9-9cXNzjnbQyabYAMxDKRVUoRG9djq9pa8qs0rizYuLD2abnp5H1xf4S401H>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegtddguddtkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehgtderre
 dtredtnecuhfhrohhmpegjuhgthhgvnhcurfgvihcuoehhiheshihpvghirdhmvgeqnecu
 ggftrfgrthhtvghrnhephfdvudduhffhtdduleffleeiffeggfehffeghfffudevhfehke
 euvddtvdeuieefnecuffhomhgrihhnpehgnhhurdhorhhgpdihphgvihdrmhgvnecuvehl
 uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhiseihphgvih
 drmhgv
X-ME-Proxy: <xmx:ov46YfBG_3hV7UdcscEiXRXbl5kH3IlCroU55gBbJKvmmk30FNnQaQ>
 <xmx:ov46YYiY8J-R6CAuKa0QEGZ8o-6fp2q2FzjQ8ctevZiA7ulKp3yHVg>
 <xmx:ov46YTq-wVAH1n-1-CF7oy2UknAtns-ckEpIGuMH12ww_CPC1wtbSw>
 <xmx:ov46YWcbf13gVJrHekmw1ovOUtp89qAP6vZoC3OvbMCtSVmL3P0cQw>
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Fri, 10 Sep 2021 02:43:45 -0400 (EDT)
User-agent: mu4e 1.4.13; emacs 27.2
From: Yuchen Pei <hi@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Subject: Add ways to copy id bookmark link in eww
Date: Fri, 10 Sep 2021 16:43:40 +1000
Message-ID: <87ilz9x74z.fsf@HIDDEN>
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@HIDDEN;
 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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 
<http://www.gnu.org/licenses/gpl-3.0.html>, 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 
<http://www.gnu.org/licenses/gpl-3.0.html#section13> 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
           <https://ypei.me/assets/ypei-pubkey.txt>

--=====-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIEEARYIACkWIQRH+dBQHhGIeZBASUEhJn6T74bf0AUCYTr+nAscaGlAeXBlaS5t
ZQAKCRAhJn6T74bf0K5LAQCT5zD7hKfm+5Qvwerx9QIsihpkMvJlZSqKgYJMS7XJ
bgD/cesIf0OIDWey6WFFJLN0yu2r4T4VxP6Ley8/UVzEcAc=
=JuXA
-----END PGP SIGNATURE-----
--=====-=-=--




Acknowledgement sent to Yuchen Pei <hi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#50500; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 10 Sep 2021 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.