Re: org link to OCaml comment

2020-02-20 Thread Alan Schmitt
On 2020-02-19 18:49, Nicolas Goaziou writes: > Alan Schmitt writes: > >> I understand, and I can be careful (and easily fix the link if needed). >> If `org-store-link' could do it for me, that would be perfect. > > I pushed some changes to `org-store-link' in order to fix this. Please > report

Re: org link to OCaml comment

2020-02-19 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > I understand, and I can be careful (and easily fix the link if needed). > If `org-store-link' could do it for me, that would be perfect. I pushed some changes to `org-store-link' in order to fix this. Please report if there is anything wrong. Regards, -- Nicola

Re: org link to OCaml comment

2020-02-07 Thread Alan Schmitt
On 2020-02-07 15:33, Nicolas Goaziou writes: > *shivers* Please never suggest again url-encoding links in Org! ;) We > only got out of this hell recently. I don't want to dive in again. Sorry, I should have put a smiley there. > There is some specific syntax in links. More specifically, the > f

Re: org link to OCaml comment

2020-02-07 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > Thank you for the explanation. Is there a way to either escape the > parentheses (maybe url-encode them), *shivers* Please never suggest again url-encoding links in Org! ;) We only got out of this hell recently. I don't want to dive in again. > or to automatically

Re: org link to OCaml comment

2020-02-06 Thread Alan Schmitt
Hello Nicolas, On 2020-02-06 18:10, Nicolas Goaziou writes: > Link enclosed within parens meant coderef links, i.e., the syntax is > reserved. You can probably remove the closing parenthesis to avoid this. Thank you for the explanation. Is there a way to either escape the parentheses (maybe url

Re: org link to OCaml comment

2020-02-06 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > The strange part is that linking to arbitrary code works. It seems that > the OCaml comment syntax is problematic here. Link enclosed within parens meant coderef links, i.e., the syntax is reserved. You can probably remove the closing parenthesis to avoid this. Re

Re: org link to OCaml comment

2020-02-06 Thread Alan Schmitt
Hello John, On 2020-02-06 09:58, John Kitchin writes: > I think you need to do it like this: > > #+BEGIN_SRC test.ml -r > > (* Object projection functions *) (ref:opf) > > > #+END_SRC > > [[file:2020-02-05.org::(opf)]] > > The -r in the header removes the coderef when you run it. Thank you for

Re: org link to OCaml comment

2020-02-06 Thread John Kitchin
I think you need to do it like this: #+BEGIN_SRC test.ml -r (* Object projection functions *) (ref:opf) #+END_SRC [[file:2020-02-05.org::(opf)]] The -r in the header removes the coderef when you run it. John --- Professor John Kitchin Doherty Hall A207F De

org link to OCaml comment

2020-02-06 Thread Alan Schmitt
Hello, I'm trying to create an org link to a specific place in an OCaml file. I thought I would use some specific target in an OCaml comment, but it does not work. Here is an OCaml comment: (* Object projection functions *) Here is the link create by `org-store-link` (I put it here with no desc