Re: [O] org-detangle seems broken

2018-06-06 Thread Frederick Giasson
Hi > > > block to its tangled source is created, then we could use it with that > option in `org-babel-detangle` to switch back to the source if it is the > wish of the user. > > It sounds like org-babel-tangle-jump-to-org is what you want. > In fact it is its opposite that I need, code block to

Re: [O] org-detangle seems broken

2018-06-06 Thread Grant Rettke
On Wed, Jun 6, 2018 at 7:31 AM, Frederick Giasson wrote: > If this is really the behavior, then I think that a new option should be > added to it such that we can choose one behavior or the other. If a function > that jump from a code > block to its tangled source is created, then we could use i

Re: [O] org-detangle seems broken

2018-06-06 Thread Frederick Giasson
Hi Grant, I think it is expected. The code looks like this: > > (when (setq new-body (org-babel-tangle-jump-to-org)) > (org-babel-update-block-body new-body)) > Yeah not sure I fully understand that code. Basically it does this for each code block that needs to be detangled right? I am jus

Re: [O] org-detangle seems broken

2018-06-05 Thread Grant Rettke
On Tue, Jun 5, 2018 at 7:18 AM, Frederick Giasson wrote: > There is one last thing related to =org-babel-detangle= that seems "broken" > is that as far as I can see, the top =save-excursion= should save the > position of the cursor of the source file and keep the buffer at that > position when we

Re: [O] org-detangle seems broken

2018-06-05 Thread Frederick Giasson
Hi Nicolas, > Here it is. If you =detangle= the =broken-detangle--working.el= file, it > > will work as expected. > > > > However, if you try to detangle the =broken-detangle--NOT-working.el= > file, > > you should get a "Not in a source block" error in *message*. > > This is fixed in "master". >

Re: [O] org-detangle seems broken

2018-06-05 Thread Nicolas Goaziou
Hello, Frederick Giasson writes: > Here it is. If you =detangle= the =broken-detangle--working.el= file, it > will work as expected. > > However, if you try to detangle the =broken-detangle--NOT-working.el= file, > you should get a "Not in a source block" error in *message*. This is fixed in "m

Re: [O] org-detangle seems broken

2018-06-04 Thread Frederick Giasson
Hi Nicolas, Here it is. If you =detangle= the =broken-detangle--working.el= file, it will work as expected. However, if you try to detangle the =broken-detangle--NOT-working.el= file, you should get a "Not in a source block" error in *message*. Another thing I noted while creating the ECM is if

Re: [O] org-detangle seems broken

2018-06-02 Thread Nicolas Goaziou
Hello, Frederick Giasson writes: > It appears that org-detangle is broken. I am using spacemacs, but even with > a vanilla Emacs (emacs -Q) it appears to be broken. > > When I tangle a file with =:comments link= every things works as expected > and the comments are added in the tangled file. > >

[O] org-detangle seems broken

2018-06-01 Thread Frederick Giasson
Hi Everybody, It appears that org-detangle is broken. I am using spacemacs, but even with a vanilla Emacs (emacs -Q) it appears to be broken. When I tangle a file with =:comments link= every things works as expected and the comments are added in the tangled file. When I just detangle that tangle