From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: problems with tangled code [8.3.2 (8.3.2-51-g713fe8-elpa @ /home/tobias/.emacs.d/elpa/org-20151221/)] Date: Sat, 02 Jan 2016 17:08:01 +0100 Message-ID: <871ta0j76m.fsf@nicolasgoaziou.fr> References: <5680563C.3020807@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFOh0-00046O-5p for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 11:06:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFOgw-0003qu-W4 for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 11:06:10 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFOgw-0003qn-Q2 for emacs-orgmode@gnu.org; Sat, 02 Jan 2016 11:06:06 -0500 In-Reply-To: <5680563C.3020807@gmx.de> ("Tobias \=\?utf-8\?Q\?M\=C3\=BCller\=22's\?\= message of "Sun, 27 Dec 2015 22:21:00 +0100") 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: Tobias =?utf-8?Q?M=C3=BCller?= Cc: emacs-orgmode@gnu.org Hello, Tobias M=C3=BCller writes: > I have discovered a problem with tangled source code in org-mode. As a > minimal example I set up the following in a file ~/test.org > > * Section > Some Text > #+BEGIN_SRC python :tangle files/file.py :comments link > print('Block 1') > #+END_SRC > > More Text > #+BEGIN_SRC python :tangle files/file.py :comments link > print('Block 2') > #+END_SRC > > If I tangle the file with C-c C-v t the resulting file ~/files/file.py > looks like this: > > # [[file:test.org::*Section][Section:1]] > print('Block 1') > # Section:1 ends here > > # [[file:test.org::*Section][Section:1]] > print('Block 2') > # Section:1 ends here > > The 1st problem here is, that the code-block counter seems not to work, > because both code blocks are labeled as [Section:1], so if I want to use > org-babel-tangle-jump-to-org both blocks would jump to block 1. > Furthermore the location of the .org file is not correctly indicated,=20 > since the > .org file is located at ~/test.org and not in the ~/files directory, so > org-babel-tangle-jump-to-org tries to create a new file > ~/files/test.org. Fixed. Thank you. Regards, --=20 Nicolas Goaziou