[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Problem with org-babel-detangle
From: |
Titus von der Malsburg |
Subject: |
Re: [O] Problem with org-babel-detangle |
Date: |
Sun, 31 Jan 2016 12:32:39 -0800 |
User-agent: |
mu4e 0.9.15; emacs 25.0.50.1 |
Thanks for looking into it. Detangling seems to work now but there is
one problem left:
If I open the org-buffer and the tangled files side by side, and then
detangle, both windows show the org-buffer afterwards. I think
detangling should leave the buffers alone. Perhaps there is a misplaced
save-excursion somewhere?
Thanks again, Nicolas!
Titus
On 2016-01-31 Sun 11:50, Nicolas Goaziou wrote:
> Hello,
>
> Titus von der Malsburg <address@hidden> writes:
>
>> I tangeled the following org-mode file:
>>
>> #+BEGIN_SRC R :tangle /tmp/test.R :comments link
>> 1 + 2
>> #+END_SRC
>>
>> #+BEGIN_SRC R :tangle /tmp/test.R :comments link
>> 3 + 4
>> #+END_SRC
>>
>> The result was:
>>
>> ## [[file:test.org][No\ heading:1]]
>> 1 + 2
>> ## No\ heading:1 ends here
>>
>> ## [[file:test.org][No\ heading:2]]
>> 3 + 4
>> ## No\ heading:2 ends here
>>
>> Then I changes “3 + 4” to “3 + 5”, revisited the org buffer, and
>> executed `org-babel-detangle'.
>>
>> Expected behavior: The second code block in org file is updated to contain
>> “3 + 5”.
>>
>> Actual behaviour: I find myself in a buffer containing test.R, the
>> cursor is inside the first code block at “1”, the second code block’s
>> content in the org buffer is highlighted, and I have an edit buffer for
>> that code block. The content of the second code block is not updated.
>
> Fixed. Thank you.
>
> Regards,
signature.asc
Description: PGP signature