From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.bugs Subject: bug#42483: 26.1: thing-at-point doesn't recognize org-link urls Date: Fri, 22 Jan 2021 21:24:56 +0000 Message-ID: <87wnw4oeaf.fsf@gnus.jao.io> References: <20200723033218.deuamgvc74zskyz4@E15-2016.optimum.net> <87czxwycll.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9913"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 42483@debbugs.gnu.org Cancel-Lock: sha1:P42FH/q5YAHE8Gdfhe9pQsTf6Zk= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 22 23:09:08 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l34c8-0002UJ-E0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 23:09:08 +0100 Original-Received: from localhost ([::1]:33756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l34c7-00024j-Ga for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 17:09:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l34c2-00024d-CC for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 17:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l34c2-0004ZV-4b for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 17:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l34c1-0002r2-Vn for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 17:09:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20200723033218.deuamgvc74zskyz4@E15-2016.optimum.net> Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jan 2021 22:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42483 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161135329410915 (code B ref -1); Fri, 22 Jan 2021 22:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2021 22:08:14 +0000 Original-Received: from localhost ([127.0.0.1]:33355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l34bG-0002pz-1N for submit@debbugs.gnu.org; Fri, 22 Jan 2021 17:08:14 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:56130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l34bD-0002pr-NI for submit@debbugs.gnu.org; Fri, 22 Jan 2021 17:08:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l34bD-00021p-Ig for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 17:08:11 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:53324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l34bC-0004I6-4e for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 17:08:11 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1l34b8-0001Qc-I3 for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 23:08:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198412 Archived-At: On Fri, Jan 22 2021, Lars Ingebrigtsen wrote: [...] > This sounds like something that belongs in org, though, and not in > thingatpt.el, though. Unfortunately, thing-at-point doesn't have a > mode-based model for working... but it could grow one? That is, there > could be a buffer-local thing-at-point-local-things, and Org could set > that to > > ((url . org--org-url-at-point)) > > or something like that. > > Any opinions? Another context in which something like this could be useful is emacs-w3m buffers, which are naturally full of links stored in text properties (or eww, i am guessing). A strategy i've seen elsewhere (in the embark package) for something similar is to keep a list of "target finders" that are applied in turn, until one succeeds returning, say, '(url . "http://foo/bar"). That's essentially what you're suggesting above, except that one can write global detectors (the list is not (necessarily) buffer local) Just an idea, jao -- Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare. - Blair Houghton.