From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] Links in tangled file - howto jump to .org? Date: Sun, 17 Oct 2010 11:39:38 -0600 Message-ID: <8762x090rp.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54659 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7XCz-00019E-82 for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 13:39:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7XCy-0004tf-4o for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 13:39:45 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:50262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7XCx-0004ta-Ux for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 13:39:44 -0400 Received: by pvf33 with SMTP id 33so25139pvf.0 for ; Sun, 17 Oct 2010 10:39:43 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Sun, 17 Oct 2010 14:45:06 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode Hi Rainer, Rainer M Krug writes: > Hi > > I just discovered one of the mysteries I experienced with org: the appear= ing > ID properties. Yes, I think this is caused by a recent change in the org-store-link function which is called during tangling. >=20 > They are caused by the back-linking of code (sitting in the file > resulting from tangling) to the actual location in the .org file which > was tangled - a REALLY nice feature. Now I am using R (and therefore > ESS), and I would like to know, how I can jump from the .R file to the > .org file? The links are not recognised in ESS - how can I tell ESS > that these are .org links? > To follow a link you need only call the `org-open-at-point' function with the point over top of the link. As for making the links look like org-mode links and responsive to C-c C-o, that would probably require the creation of a new minor mode. The creation of which while not the most onerous of tasks escapes me at the moment, however as a temporary workaround, you could add something like the following to your ess-mode hook to make links stand out... --8<---------------cut here---------------start------------->8--- (defun style-org-links () (interactive) (font-lock-add-keywords nil `((,org-bracket-link-regexp (0 (prog1 nil (compose-region (match-beginning 0) (match-beginning 3) "=E2=86=92")))) (,org-bracket-link-regexp (0 (prog1 nil (compose-region (match-end 3) (match-end 0) "=E2=86=90"))))))) --8<---------------cut here---------------end--------------->8--- Best -- Eric > > Cheers, > > Rainer