From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: org link to OCaml comment Date: Thu, 06 Feb 2020 16:39:23 +0100 Message-ID: <87v9ojsp1w.fsf@polytechnique.org> References: <87a75vu60w.fsf@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44913) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izjFZ-00071y-4I for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 10:39:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izjFX-00020w-6H for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 10:39:28 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:47497) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izjFW-0001ng-Sg for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 10:39:27 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: emacs-orgmode 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 the suggestion. Unfortunately I need to link to an external ml file. I can change it, but I need to get a syntactically valid file. I tried putting the ref part inside the comment and unfortunately it does not work. The strange part is that linking to arbitrary code works. It seems that the OCaml comment syntax is problematic here. Best, Alan