[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42483: 26.1: thing-at-point doesn't recognize org-link urls
From: |
Lars Ingebrigtsen |
Subject: |
bug#42483: 26.1: thing-at-point doesn't recognize org-link urls |
Date: |
Sat, 23 Jan 2021 20:15:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Jose A. Ortega Ruiz" <jao@gnu.org> 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
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, Lars Ingebrigtsen, 2021/01/22
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, Jose A. Ortega Ruiz, 2021/01/22
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls,
Lars Ingebrigtsen <=
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, Lars Ingebrigtsen, 2021/01/23
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, jao, 2021/01/23
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, Lars Ingebrigtsen, 2021/01/25
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, jao, 2021/01/25
- bug#42483: 26.1: thing-at-point doesn't recognize org-link urls, Lars Ingebrigtsen, 2021/01/26