Hi Bastien,
Bastien <b...@altern.org> writes: > Hi Andreas, > > Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > >> On a related note: I'd also love to see the changes in the >> source code buffers be autosaved in the org file. I've lost some big >> edits already due to power loss on my (old) laptop. > > There is now `org-edit-src-auto-save-idle-delay' which you can > set to >0 so that the edit src buffer will be saved after N secs > of idle time. > > Thanks for suggesting this, thanks for taking this up! But I am not sure, whether I like the current implementation too much. Instead of saving the org-file itself, I'd prefer the org-file to be auto-saved. More importantly, the current implementation prevents me from discarding the edit with the new C-c C-k (org-edit-src-abort). I am not sure how to overcome those limitations (especially the second one), though. So I fear, I won't be able to provide a patch implementing my preferred behaviour. Regards, Andreas