Re: [PATCH] ob-tangle: Add flag to optionally remove files before writing

2024-02-28 Thread Olivier Lischer
Ihor Radchenko writes: > > Thanks for the update! > Unfortunately, your patch has unbalanced parenthesis and will not work. > I have modified your patch to make things work and to make it conform to > Elisp code conventions. I also removed spurious change in the existing > variable. > > See the a

Re: [PATCH] ob-tangle: Add flag to optionally remove files before writing

2024-01-29 Thread Olivier Lischer
Ihor Radchenko writes: > Olivier Lischer writes: > >>> Thanks for the patch, but may you please explain why introducing such >>> variable is useful? >> >> Sure. >> >> I configure all my .dotfiles in an Org mode file and tangle the >> config

Re: [PATCH] ob-tangle: Add flag to optionally remove files before writing

2024-01-28 Thread Olivier Lischer
Ihor Radchenko writes: > Olivier Lischer writes: > >> In December last year was a change introduced, that a file should not be >> removed before >> tangling (https://lists.gnu.org/r/emacs-orgmode/2021-05/msg00337.html). >> In an older bug report >> (https:

[PATCH] ob-tangle: Add flag to optionally remove files before writing

2024-01-23 Thread Olivier Lischer
added a variable to switch between both behaviors. Any feedback or advice is welcome. >From 4f2f2a0dcca82a934144636da478a9243e514f66 Mon Sep 17 00:00:00 2001 From: Olivier Lischer Date: Tue, 23 Jan 2024 21:02:20 +0100 Subject: [PATCH] ob-tangle: Add flag to optionally remove files before writ