GNU bug report logs -
#42483
26.1: thing-at-point doesn't recognize org-link urls
Previous Next
Full log
View this message in rfc822 format
"Jose A. Ortega Ruiz" <jao <at> 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
This bug report was last modified 3 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.