Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-20 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> How about the attached patch? > > I have attached a modification of your patch. I think it is clearer > with > the risk of being too verbose, but the docstring width is < 80. Thanks! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-20 Thread gerard . vermeulen
On 20.01.2024 13:18, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: I suspect that you may have some misunderstanding about how `org-babel-detangle' works. Its docstring says: Propagate changes in source file back original to Org file. So, it is expected to run from the tangle

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-20 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> I suspect that you may have some misunderstanding about how >> `org-babel-detangle' works. Its docstring says: >> >>Propagate changes in source file back original to Org file. >> >> So, it is expected to run from the tangled file; not from the Org file.

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread gerard . vermeulen
On 19.01.2024 16:20, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: org-babel-detangle is an interactive command but M-x org-babel-detangle always replies "Detangled 0 code blocks" This patch makes org-babel-detangle prompt for a source code file. Obviously, I got bitten by this.

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > org-babel-detangle is an interactive command but > M-x org-babel-detangle always replies "Detangled 0 code blocks" > This patch makes org-babel-detangle prompt for a source code file. > > Obviously, I got bitten by this. I suspect that you may have some misun

[PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread gerard . vermeulen
Hi, org-babel-detangle is an interactive command but M-x org-babel-detangle always replies "Detangled 0 code blocks" This patch makes org-babel-detangle prompt for a source code file. Obviously, I got bitten by this. The patch contains (user-error "Source code file does %S not exist" source-cod