From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: refine org-babel-tangle-jump-to-org? Date: Fri, 07 Jun 2013 10:26:32 +0200 Message-ID: <87a9n2wclj.fsf@krugs.de> References: <87r4goy0uo.fsf@krugs.de> <87ehcoktsl.fsf@gmail.com> <87fvx3bnzl.fsf@krugs.de> <87wqqfjnmi.fsf@gmail.com> <878v2rsfol.fsf@krugs.de> <8761xr8ei4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uks0a-0000VU-U6 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 04:26:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uks0V-0002oZ-42 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 04:26:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:55728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uks0U-0002nr-UP for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 04:26:47 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uks0S-0003Gf-Up for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 10:26:44 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 10:26:44 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 10:26:44 +0200 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Schulte writes: >> the tangled file looks as follow, including the empty lines at >> beginning and end: >> >> ,---- >> | >> | ## [[file:~/tmp/jumpBack.org::*newASM%20(./newASM.R)][newASM\ \(\./newASM\.R\):1]] >> | >> | logList("##########################################################################") >> | logList("##########################################################################") [snip (19 lines)] >> | logEnd() >> | return(ASM) >> | } >> | >> | ## newASM\ \(\./newASM\.R\):1 ends here >> | >> `---- >> >> This one works, although the cursor is consistently two characters to the left then >> where it should be. >> > > This is off because the first line of your example is not indented > correctly when tangled. Specifically, it is indented by two spaces in > the source file and by four spaces in the code block. Setting the > `org-src-preserve-indentation' variable to t should fix this. > >> >> If I change >> >> ,---- >> | #+PROPERTY: padline yes >> `---- >> >> to >> >> ,---- >> | #+PROPERTY: padline no >> `---- >> >> the padlines are gone, ant the jumping back is completely off (from >> first r in return() it jumps to the third # in the last logList()). >> > > For now I think both padlines and link comments are required for the > jumping functionality to work. I've updated the documentation to > reflect this. > Thanks - I will change it accordingly. Rainer [snip (16 lines)] <#secure method=pgpmime mode=sign> -- Rainer M. Krug email: RMKruggmailcom