From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point) Date: Mon, 29 Apr 2024 21:42:35 -0700 Message-ID: <253c058a-d349-41a7-7733-c73075bffcb6@gmail.com> References: <87leba3ame.fsf@localhost> <88435424-afa3-d7a3-56ff-df9f0a2ca6ba@gmail.com> <875xz39cgp.fsf@localhost> <87ttk6da89.fsf@localhost> <673a0f71-c91f-8461-7388-9efbed6ba24f@gmail.com> <0c66ae28-7088-3ac7-be39-7714b8f80455@gmail.com> <87mspcave3.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------Dt9230sjNJ7zDeYseJtX6Zqh" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29093"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 30 06:43:19 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s1fKp-0007S6-J0 for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Apr 2024 06:43:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1fKG-0001ki-68; Tue, 30 Apr 2024 00:42:44 -0400 Original-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 1s1fKD-0001kF-Mk; Tue, 30 Apr 2024 00:42:41 -0400 Original-Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1fKB-0008QO-7Z; Tue, 30 Apr 2024 00:42:41 -0400 Original-Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5aa22ebd048so3966762eaf.1; Mon, 29 Apr 2024 21:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714452157; x=1715056957; darn=gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=AO3azpUsXUV/J+N9ufLeBDTcRJz5WRufFWPpgNKQ7vY=; b=EDuObc7Ap7XQawcV0N7mUjlpUhnRactZPx8+tadHLXzgSH0wEKUuHLKBJDWCBPkfpb NvsTHXa9/GCAjD4uHUjgcvsdGvnzmD65tQbn9vRxLWZAn2L+hIWS0BZBUT8VjcpzWj7G kCYrprhWhEmGe0Uxa6BpH2dkFHMXEJoQj0Qhh3lRg9fI63I7p2XodAqoC/f6USY4IGi5 LLvrVOSjUgKkVZA+A67Z1MjYbbRvWIz9d+rHKAocacrbSgdJZRLZQPeiOYArOZkJXvHK /5b/1jqH45oi3rMdXRPI2hUsjRziT1X0n5pIIYOIA15txRymZcJLUeOt6T3kJgOfYkPM qAmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714452157; x=1715056957; h=in-reply-to:from:references:cc:to:content-language:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=AO3azpUsXUV/J+N9ufLeBDTcRJz5WRufFWPpgNKQ7vY=; b=s+VGZg9yP/upyRHJqEh7sbTmj3XIG8o8WPacJv9UuVxZos9JQ/mlZwLJdPsSHh8ZQl 1z/TQHfVkLor0hiE9GxbP6jwKDzgprF8ghbmTNHIH2IE1w6RkLh5bo6ILb6Mr2qTTfHs xLUZ90Lr3wS7Tlo5Mf5MsKH5Y9GefT6XIGjEfUUD8KWF7WF8HSbNu4n/w81iHbWZC+/y sGISilCdvzlenAbYNHM0pcySPT8wSa0aDxk3zXEvSFykkWnMFKLhFeItnwxMNKz6+nkX KnaItbjfwAyWZK/sJUlmqz53uysA+A7e0/21GNOJLjiOsUt3S9JMRTsRd3VVgpVbDdNc FUdw== X-Forwarded-Encrypted: i=1; AJvYcCU0+4rKXrnEP7GzSZAWG9/jota837ZX/PSk6Tc13+pY3AtHhd8nw8bDnikdHk332VWpOJ9bn+Icz0QzeuSzL8BbDsfX0eieaBTF8pbydRylio6AUX8cMeVOVb8= X-Gm-Message-State: AOJu0YwejvQAOjEFjE/wq6v4mYSa31Izt3EwqUb5UU3tDDIoGTKPeuv5 Uo3NMa82FyR4/MoVwi76KU+qPue+8NTetgXGp+5rX8t5rJB2/s+w X-Google-Smtp-Source: AGHT+IH6F9gpm/8zcrET5GSfOpGttT1aUYfBsgFdzKSuaAcRKNbzcBlSHHtAm09RHZTOG99NIUvZuQ== X-Received: by 2002:a05:6358:f484:b0:17b:5661:5e2b with SMTP id ku4-20020a056358f48400b0017b56615e2bmr10802496rwb.18.1714452156655; Mon, 29 Apr 2024 21:42:36 -0700 (PDT) Original-Received: from [192.168.1.2] ([23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 81-20020a630254000000b005f80080586asm17783485pgc.93.2024.04.29.21.42.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Apr 2024 21:42:35 -0700 (PDT) Content-Language: en-US In-Reply-To: <87mspcave3.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=jporterbugs@gmail.com; helo=mail-oo1-xc2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318393 gmane.emacs.orgmode:161340 Archived-At: This is a multi-part message in MIME format. --------------Dt9230sjNJ7zDeYseJtX6Zqh Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/29/2024 11:14 AM, Ihor Radchenko wrote: > Thanks! > I have a small comment on the docstring of > `forward-thing-provider-alist' - it refers to > `thing-at-point-provider-alist', but the provides here are called with > an argument N, unlike the providers in `thing-at-point-provider-alist'. Fixed. I've also added some helper functions for 'forward-thing' and 'bounds-of-thing-at-point' when the "thing" is defined by a text property, and then used those helper functions for EWW and bug-reference-mode. I've lightly tested this (and added a few automated regression tests), but there could be some bugs lurking in here... --------------Dt9230sjNJ7zDeYseJtX6Zqh Content-Type: text/plain; charset=UTF-8; name="0001-Allow-defining-custom-providers-for-more-thingatpt-f.patch" Content-Disposition: attachment; filename*0="0001-Allow-defining-custom-providers-for-more-thingatpt-f.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSBhZDhkYjkzMDkwN2NkNzYwMTQyZmQ2ZjAzNWQ5N2NlOTNjZThkODUwIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IFN1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UKICAgICAgIChwcm9nbgogICAgICAgICAoaml0LWxvY2stcmVnaXN0ZXIgIydidWct cmVmZXJlbmNlLWZvbnRpZnkpCiAgICAgICAgIChzZXRxLWxvY2FsIHRoaW5nLWF0LXBvaW50 LXByb3ZpZGVyLWFsaXN0CiAgICAgICAgICAgICAgICAgICAgIChhcHBlbmQgdGhpbmctYXQt cG9pbnQtcHJvdmlkZXItYWxpc3QKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKCh1 cmwgLiBidWctcmVmZXJlbmNlLS11cmwtYXQtcG9pbnQpKSkpKQorICAgICAgICAgICAgICAg ICAgICAgICAgICAgICcoKHVybCAuIGJ1Zy1yZWZlcmVuY2UtLXVybC1hdC1wb2ludCkpKSkK KyAgICAgICAgKHNldHEtbG9jYWwgYm91bmRzLW9mLXRoaW5nLWF0LXBvaW50LXByb3ZpZGVy LWFsaXN0CisgICAgICAgICAgICAgICAgICAgIChhcHBlbmQgYm91bmRzLW9mLXRoaW5nLWF0 LXBvaW50LXByb3ZpZGVyLWFsaXN0CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgJygo dXJsIC4gYnVnLXJlZmVyZW5jZS0tYm91bmRzLW9mLXVybC1hdC1wb2ludCkpKSkKKyAgICAg ICAgKHNldHEtbG9jYWwgZm9yd2FyZC10aGluZy1wcm92aWRlci1hbGlzdAorICAgICAgICAg ICAgICAgICAgICAoYXBwZW5kIGZvcndhcmQtdGhpbmctcHJvdmlkZXItYWxpc3QKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAnKCh1cmwgLiBidWctcmVmZXJlbmNlLS1mb3J3YXJk LXVybCkpKSkpCiAgICAgKGppdC1sb2NrLXVucmVnaXN0ZXIgIydidWctcmVmZXJlbmNlLWZv bnRpZnkpCiAgICAgKHNldHEgdGhpbmctYXQtcG9pbnQtcHJvdmlkZXItYWxpc3QKICAgICAg ICAgICAoZGVsZXRlICcoKHVybCAuIGJ1Zy1yZWZlcmVuY2UtLXVybC1hdC1wb2ludCkpCiAg ICAgICAgICAgICAgICAgICB0aGluZy1hdC1wb2ludC1wcm92aWRlci1hbGlzdCkpCisgICAg KHNldHEgYm91bmRzLW9mLXRoaW5nLWF0LXBvaW50LXByb3ZpZGVyLWFsaXN0CisgICAgICAg ICAgKGRlbGV0ZSAnKCh1cmwgLiBidWctcmVmZXJlbmNlLS1ib3VuZHMtb2YtdXJsLWF0LXBv aW50KSkKKyAgICAgICAgICAgICAgICAgIGJvdW5kcy1vZi10aGluZy1hdC1wb2ludC1wcm92 aWRlci1hbGlzdCkpCisgICAgKHNldHEgZm9yd2FyZC10aGluZy1wcm92aWRlci1hbGlzdAor ICAgICAgICAgIChkZWxldGUgJygodXJsIC4gYnVnLXJlZmVyZW5jZS0tZm9yd2FyZC11cmwp KQorICAgICAgICAgICAgICAgICAgZm9yd2FyZC10aGluZy1wcm92aWRlci1hbGlzdCkpCiAg ICAgKHNhdmUtcmVzdHJpY3Rpb24KICAgICAgICh3aWRlbikKICAgICAgIChidWctcmVmZXJl bmNlLXVuZm9udGlmeSAocG9pbnQtbWluKSAocG9pbnQtbWF4KSkpKSkKZGlmZiAtLWdpdCBh L2xpc3AvdGhpbmdhdHB0LmVsIGIvbGlzcC90aGluZ2F0cHQuZWwKaW5kZXggNzg5NmFkOTg0 ZGYuLmRhZDcxYTRjYTk0IDEwMDY0NAotLS0gYS9saXNwL3RoaW5nYXRwdC5lbAorKysgYi9s aXNwL3RoaW5nYXRwdC5lbApAQCAtNzUsNiArNzUsMjcgQEAgdGhpbmctYXQtcG9pbnQtcHJv dmlkZXItYWxpc3QKIGBleGlzdGluZy1maWxlbmFtZScsIGB1cmwnLCBgZW1haWwnLCBgdXVp ZCcsIGB3b3JkJywgYHNlbnRlbmNlJywKIGB3aGl0ZXNwYWNlJywgYGxpbmUnLCBgZmFjZScg YW5kIGBwYWdlJy4iKQogCisoZGVmdmFyIGZvcndhcmQtdGhpbmctcHJvdmlkZXItYWxpc3Qg bmlsCisgICJBbGlzdCBvZiBw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NDAgQEAgdGVzdC1u dW1iZXJzLWhleC1jCiAgIChzaG91bGQgKGVxdWFsICh0ZXN0LS1udW1iZXIgIjB4ZjAwIiAy KSAzODQwKSkKICAgKHNob3VsZCAoZXF1YWwgKHRlc3QtLW51bWJlciAiMHhmMDAiIDMpIDM4 NDApKSkKIAorKGVydC1kZWZ0ZXN0IHRoaW5nLWF0LXBvaW50LXByb3ZpZGVycyAoKQorICAo d2l0aC10ZW1wLWJ1ZmZlcgorICAgIChzZXRxLWxvY2FsIHRoaW5nLWF0LXBvaW50LXByb3Zp ZGVyLWFsaXN0CisgICAgICAgICAgICAgICAgYCgodXJsIC4gLChsYW1iZGEgKCkgKGdldC10 ZXh0LXByb3BlcnR5IChwb2ludCkgJ215LXVybCkpKSkpCisgICAgKGluc2VydCAocHJvcGVy dGl6ZSAiaGVsbG8iICdteS11cmwgInRlc3QiKSkKKyAgICAoZ290by1jaGFyIChwb2ludC1t aW4pKQorICAgIChzaG91bGQgKGVxdWFsICh0aGluZy1hdC1wb2ludCAndXJsKSAidGVzdCIp KQorICAgIChzaG91bGQgKGVxdWFsICh0aGluZy1hdC1wb2ludCAnd29yZCkgImhlbGxvIikp KSkKKworKGVydC1kZWZ0ZXN0IGZvcndhcmQtdGhpbmctcHJvdmlkZXJzICgpCisgICh3aXRo LXRlbXAtYnVmZmVyCisgICAgKHNldHEtbG9jYWwgZm9yd2FyZC10aGluZy1wcm92aWRlci1h bGlzdAorICAgICAgICAgICAgICAgIGAoKHVybCAuICwobGFtYmRhIChuKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgIChmb3J3YXJkLXRoaW5nLWZvci10ZXh0LXByb3BlcnR5ICdt eS11cmwgbikpKSkpCisgICAgKGluc2VydCAocHJvcGVydGl6ZSAiZm9vIiAnbXktdXJsICJ0 ZXN0IikgImJhciIpCisgICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkKKyAgICAoc2hvdWxk IChlcSAoc2F2ZS1leGN1cnNpb24gKGZvcndhcmQtdGhpbmcgJ3VybCkgKHBvaW50KSkgNCkp CisgICAgKHNob3VsZCAoZXEgKHNhdmUtZXhjdXJzaW9uIChmb3J3YXJkLXRoaW5nICd3b3Jk KSAocG9pbnQpKSA3KSkpKQorCisoZXJ0LWRlZnRlc3QgYm91bmRzLW9mLXRoaW5nLWF0LXBv aW50LXByb3ZpZGVycyAoKQorICAod2l0aC10ZW1wLWJ1ZmZlcgorICAgIChzZXRxLWxvY2Fs IGJvdW5kcy1vZi10aGluZy1hdC1wb2ludC1wcm92aWRlci1hbGlzdAorICAgICAgICAgICAg ICAgIGAoKHVybCAuICwobGFtYmRhICgpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg KGJvdW5kcy1vZi10aGluZy1hdC1wb2ludC1mb3ItdGV4dC1wcm9wZXJ0eQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAnbXktdXJsKSkpKSkKKyAgICAoaW5zZXJ0IChwcm9wZXJ0 aXplICJmb28iICdteS11cmwgInRlc3QiKSAiYmFyIikKKyAgICAoZ290by1jaGFyIChwb2lu dC1taW4pKQorICAgIDs7IExvb2sgZm9yIGEgIlVSTCIsIHVzaW5nIG91ciBwcm92aWRlciBh Ym92ZS4KKyAgICAoc2hvdWxkIChlcXVhbCAoYm91bmRzLW9mLXRoaW5nLWF0LXBvaW50ICd1 cmwpICcoMSAuIDQpKSkKKyAgICAoc2hvdWxkIChlcSAoc2F2ZS1leGN1cnNpb24gKGJlZ2lu bmluZy1vZi10aGluZyAndXJsKSkgMSkpCisgICAgKHNob3VsZCAoZXEgKHNhdmUtZXhjdXJz aW9uIChlbmQtb2YtdGhpbmcgJ3VybCkpIDQpKQorICAgIDs7IExvb2sgZm9yIGEgd29yZCwg d2hpY2ggc2hvdWxkICpub3QqIHVzZSBvdXIgcHJvdmlkZXIgYWJvdmUuCisgICAgKHNob3Vs ZCAoZXF1YWwgKGJvdW5kcy1vZi10aGluZy1hdC1wb2ludCAnd29yZCkgJygxIC4gNykpKQor ICAgIChzaG91bGQgKGVxIChzYXZlLWV4Y3Vyc2lvbiAoYmVnaW5uaW5nLW9mLXRoaW5nICd3 b3JkKSkgMSkpCisgICAgKHNob3VsZCAoZXEgKHNhdmUtZXhjdXJzaW9uIChlbmQtb2YtdGhp bmcgJ3dvcmQpKSA3KSkpKQorCiA7OzsgdGhpbmdhdHB0LXRlc3RzLmVsIGVuZHMgaGVyZQot LSAKMi4yNS4xCgo= --------------Dt9230sjNJ7zDeYseJtX6Zqh--