From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#42483: 26.1: thing-at-point doesn't recognize org-link urls Date: Sat, 23 Jan 2021 20:15:37 +0100 Message-ID: <87r1mbtqg6.fsf@gnus.org> References: <20200723033218.deuamgvc74zskyz4@E15-2016.optimum.net> <87czxwycll.fsf@gnus.org> <87wnw4oeaf.fsf@gnus.jao.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9399"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 42483@debbugs.gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 23 20:16:46 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 1l3OOr-0002KT-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jan 2021 20:16:45 +0100 Original-Received: from localhost ([::1]:60088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3OOq-0004nA-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jan 2021 14:16:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3OOA-0004li-EB for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 14:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3OOA-0002ri-5p for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 14:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3OOA-0005qY-19 for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 14:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jan 2021 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42483 X-GNU-PR-Package: emacs Original-Received: via spool by 42483-submit@debbugs.gnu.org id=B42483.161142935722202 (code B ref 42483); Sat, 23 Jan 2021 19:16:01 +0000 Original-Received: (at 42483) by debbugs.gnu.org; 23 Jan 2021 19:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:35320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3OO5-0005lk-Ef for submit@debbugs.gnu.org; Sat, 23 Jan 2021 14:15:57 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3OO3-0005f0-2w for 42483@debbugs.gnu.org; Sat, 23 Jan 2021 14:15:55 -0500 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=PSGRBiXSxf8873eu1TTZ+8QsjhLZIWcFkvsNjEv1kWk=; b=tANMCBDhWQAliYK99y6r3+ue4s 7hINO/HBOi8HRxkoQsm31/wMn7MpZrF8sGS4v13K7jftcCAi9zmqqau7wJLboJTNMYaSWaayaaMtk 9qCvjVNbb0JRhy9fjpIdjaabpG0H0DDi8UZwhwcHGzA48oXvUtmT/nB+l9a3/1NNBVfY=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3ONs-0004Fr-7V; Sat, 23 Jan 2021 20:15:49 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEX7+/ubn55XTksx OjcaODWySkP///9XuT1hAAAAAWJLR0QGYWa4fQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1F B+UBFxMHJvnfaBQAAAFzSURBVDjLbVTdmQIhDNw9G9DVAjTIuxegAHfPBsD038oFCH+r86CfjJNJ QsI0FcwLwO047TEvhmHNbX+uNpNgcRDNd1Ox9sTFdPht5z9bT9hrJcyIGuywI8z1u8AYFIcPQlwu H4R5phrMF/SRFKoxVo6EFF4BhyLz/4j8K7iqWYuFo6hwb2gmc2qHjgrl7lo09ijexIQLGMjX4g/Z OkGzUIjHdBaLBE/EsZSKaQ0EIxSCPyB6k4eeeDJhE+EBMPFNAVkBAPGLcnOwEp5/gBCQiRLKIOcA XOJorikoVoAr5pIuV6CjQpMa69AcS/lYYul7awk4ySr3KjeRu+RZ4AvBV9javsa2p2altk9ysxS4 7W9dPNrV+qRw3tf56YaBr5buch11fNCvPAyQF8ge2+haWLspGUYUY83YRjSvDYKgRSp5dViHxbGw LNBvAUN2Vu0EH8vZbfq5Y2y3zuy/fT9vT8bfeM5Ij8yG+0cmik7L7dR8/wECj713jq8OBAAAABl0 RVh0Y29tbWVudABDcmVhdGVkIHdpdGggR0lNUOevQMsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEt MDEtMjNUMTk6MDc6MzgrMDA6MDB0hB88AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAxLTIzVDE5 OjA3OjM4KzAwOjAwBdmngAAAAABJRU5ErkJggg== X-Now-Playing: Herbert's _Part Two_: "Shuffler" In-Reply-To: <87wnw4oeaf.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Fri, 22 Jan 2021 21:24:56 +0000") 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:198460 Archived-At: "Jose A. Ortega Ruiz" writes: > 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). Yes, that's true -- it would certainly be nice if `(thing-at-point 'url)' worked in eww buffers (which it currently doesn't). > 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) Yup. Adding this sort of framework to thingatpt looks pretty trivial, and sounds generally useful, so I'll take a stab at it (using eww as the first test case). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no