Re: [O] canonical way to go beginning of a link

2016-07-06 Thread John Kitchin
Haustedt, Jens writes: > Given this setting: > > some more text cite:a-key some text cite:a-key > ^ > When you run (re-search-backward "cite:") at the point above, the result is > as follows: > > some more text cite:a-key some text cite:a-key >

Re: [O] canonical way to go beginning of a link

2016-07-06 Thread Haustedt, Jens
> but in things like font-lock it seems slow compared to a > regexp. I have not found a reliable regexp approach though. say > I want to search back for "cite:" with point at the ^ position > below: > some text cite:a-key > ^ > If I run (re-search-backward "cite:") at the point above,

[O] canonical way to go beginning of a link

2016-07-04 Thread John Kitchin
Is there a canonical way to jump to the beginning of a link in org-mode, i.e. the first char? I usually do something this like: (goto-char (org-element-property :begin (org-element-context))) but in things like font-lock it seems slow compared to a regexp. I have not found a reliable regexp appr