From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: edit-src on read-only files Date: Wed, 27 Feb 2013 21:40:00 +0100 Message-ID: <87621dh4nz.fsf@med.uni-goettingen.de> References: <7201.1360248766@greg-minshalls-mbp.local> <87a9refjuc.fsf@ucl.ac.uk> <87bobtabjp.fsf@med.uni-goettingen.de> <87a9r4o897.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAnno-00044q-AJ for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 15:40:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAnnc-0004gK-E9 for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 15:40:30 -0500 Received: from plane.gmane.org ([80.91.229.3]:35875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAnnc-0004bC-7a for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 15:40:24 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UAnnl-00012A-NV for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 21:40:33 +0100 Received: from vpn-2010.gwdg.de ([134.76.2.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2013 21:40:33 +0100 Received: from andreas.leha by vpn-2010.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2013 21:40:33 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Bastien, Bastien writes: > Hi Andreas, > > Andreas Leha 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