From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: edit-src on read-only files Date: Sat, 09 Feb 2013 13:58:50 +0100 Message-ID: <87bobtabjp.fsf@med.uni-goettingen.de> References: <7201.1360248766@greg-minshalls-mbp.local> <87a9refjuc.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4A1N-0008Fb-Te for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 07:59:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4A1L-0003Nl-3g for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 07:59:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:45508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4A1K-0003Ng-U7 for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 07:59:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U4A1a-0002Hv-1b for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 13:59:22 +0100 Received: from vpn-2122.gwdg.de ([134.76.2.122]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Feb 2013 13:59:22 +0100 Received: from andreas.leha by vpn-2122.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Feb 2013 13:59:22 +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 all, Eric S Fraga writes: > Greg Minshall writes: > >> hi. i use RCS on my .org files. it's happened to me more than once (>1 >> ==> "shame on me") that i've entered "C-c '" on a read-only .org file, >> spent some time editing the source code fragment, then done "C-c '", >> only to lose my edits, as the original buffer was read-only. > > Yes, I share your shame... this has happened to me more than once as > well. Thank you for the simple solution which I have installed! > I have installed that as well. Very nice thanks. > But you are correct that org should check for this case. Or at least > provide a mechanism for saving the source code block elsewhere... Seconded. 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. Cheers, Andreas