From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wC//OAfxUWZhzQAAqHPOHw:P1 (envelope-from ) for ; Sat, 25 May 2024 16:09:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wC//OAfxUWZhzQAAqHPOHw (envelope-from ) for ; Sat, 25 May 2024 16:09:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fpROAIps; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716646151; a=rsa-sha256; cv=none; b=CCDVu40H1kKx6Vj0BDC+mbtm0VxnwQEIipvwbX0coJX1afjPjsWxALbnU+8SS//LmhXFCy lcun9QkklvrPXwtEa9kuhs+EPkwA/DRalf5GuxpB0fqKH9m+vkLP9vLkiJ9IlpQ+FgzPjN BD/jQl7g2/BANu3541WJWN5BF9UqZtFjoIU5D9O9WTzj6qR3jJzNCHPLPUWRFFPegk/xSk kBQLua99gDiDjvVnzNgPm/PUDZKqw0VQxy2SzJjrn1QP8D7XqXUVFNYiZ6pvaADGhsX6N5 7vu3UX+Mub3b6FsZ/K8IJFgTL50CPJkSMfc5C4OGsBIjsjKrfLNJmMazCmBR6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fpROAIps; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716646151; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6VMbxikaREQKz875w0XbGsXoJ9Vdyl22QFFz/Kp16+g=; b=iombeBcZm24DK35xLELSRUc1kl7PCc8/EujnH27htuDNlDa6G1t8YxJuQdnbzVeNMClN23 6zMBoXRALKyF1b7u1PyOWKNu2I6TiqTrcPK34eox1+Ly1pZCr5zLhyYLlxNPPVWp30DCvc HBRQfDTX0oql12gL3LP+vll0oh5/T04YKpP43uUwTvT172xbw1f+5aVnLUfX4EQMo9b9TE O4ImhT4r6gQ3XdJrHHV9mWA3y1QCGyMchTnjg4qU7siJ9uLoghVDuBBF8lck1dcpRwVVfD 3b5e/lIsohEEIQFdLJgaF9XgSpDVW8L6l4JwZP0kJ2r30cUL+Pg6SZNpGR/7UA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 992C01A884 for ; Sat, 25 May 2024 16:09:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAs40-00076N-N8; Sat, 25 May 2024 10:08:01 -0400 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 1sAs3x-00075o-1n for emacs-orgmode@gnu.org; Sat, 25 May 2024 10:07:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAs3t-0002EG-Os for emacs-orgmode@gnu.org; Sat, 25 May 2024 10:07:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 03A9C240101 for ; Sat, 25 May 2024 16:07:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716646069; bh=6+O/OLyU0hL+5EOf89adRlXX6WrbAqLaiubxAr29Z0M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=fpROAIpsb17mWjOcdEP4Oo5+AVjPgTMdJEoWEn8ZtIIBgO1TB6+5QnwPB0hB9AVC5 gCAz7XyGgFQZebgbbzIyNcJ5yyPAtBP8TcplTckWCcGSoT97FN70f+KrKVQBqtXb97 OFMttB0GArKfX8+waUpQxCaYzSfLJ46AOpnbQMtYHN00I5gYtQ7Xd3nIj+6Gxpk7uC QHZLGSiQ9TYakRznCa9RbWFU/FQuJ3IA/6JhK2/67grDsgetv0LmDj2B8Ksp1odEb1 hm2WpjGjNMVp86aM3BqmcTgXZp8ASQczg3oAetAPp3J1OLn3gnukochHsYxOaJdotw QIA3ph6WuFEeg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VmkJM6XK3z6txT; Sat, 25 May 2024 16:07:47 +0200 (CEST) From: Ihor Radchenko To: Jim Porter Cc: emacs-orgmode@gnu.org Subject: Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point) In-Reply-To: <9a9eb3b1-9a48-4868-fb80-7a7b23c535e3@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> <253c058a-d349-41a7-7733-c73075bffcb6@gmail.com> <87sez36pvl.fsf@localhost> <2f344439-d0d6-a3e5-963c-773bb5c833d6@gmail.com> <868r07fruy.fsf@gnu.org> <2a1c5aa9-9ede-3024-fd93-56251a01f68f@gmail.com> <87seycrci8.fsf@localhost> <9a9eb3b1-9a48-4868-fb80-7a7b23c535e3@gmail.com> Date: Sat, 25 May 2024 14:09:31 +0000 Message-ID: <87jzji6l0k.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 992C01A884 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.90 X-Spam-Score: -8.90 X-TUID: vAX/0Yi4uRhV Jim Porter writes: >> According to the docstring, functions in `forward-thing-provider-alist' >> should accept a single argument - the number of "things" to skip >> forward/backward. But it is not what `org-next-link' expects. > > In a twist, it turns out *this* patch for Org-mode was correct, and my > prior patch for thingatpt.el was wrong. In short, 'forward-thing' now > calls the functions in 'forward-thing-provider-alist' with a BACKWARD > flag, rather than an integer N. That's because 'forward-thing' needs to > account for the case where you have multiple providers for the same > "thing", and so it needs to go one at a time checking all the providers > for the best match (read: the one that moves point by the smallest > non-zero amount). > > I've now pushed the thingatpt fix to the Emacs master branch. Ok. Now, may you also add NEWS entry? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at