Jim Porter <jporterb...@gmail.com> writes: > Ihor, Eli: What do you think of the attached patch? I added variables to > let modes define custom providers for 'bounds-of-thing-at-point' and > 'forward-thing'. (Notably, I avoided adding vars for the > 'beginning-of-thing' and 'end-of-thing' functions, since those just call > 'bounds-of-thing-at-point' anyway.) > > If this looks like a reasonable way to go, I'll continue work on this > patch by adding entries to 'bounds-of-thing-at-point-provider-alist' and > 'forward-thing-provider-alist' in the appropriate places (i.e. wherever > we already add to 'thing-at-point-provider-alist', like in EWW).
Thanks! I have a small comment on the docstring of `forward-thing-provider-alist' - it refers to `thing-at-point-provider-alist', but the provides here are called with an argument N, unlike the providers in `thing-at-point-provider-alist'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>