[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: problems with tangled code [8.3.2 (8.3.2-51-g713fe8-elpa @
From: |
Nicolas Goaziou |
Subject: |
Re: [O] 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 |
Hello,
Tobias Müller <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] Bug: problems with tangled code [8.3.2 (8.3.2-51-g713fe8-elpa @ /home/tobias/.emacs.d/elpa/org-20151221/)],
Nicolas Goaziou <=