Hello, Tobias Müller <mllertob...@gmx.de> 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, > 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, -- Nicolas Goaziou