From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: edit-src on read-only files Date: Sat, 9 Feb 2013 10:18:27 +1030 Message-ID: <87a9refjuc.fsf@ucl.ac.uk> References: <7201.1360248766@greg-minshalls-mbp.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3xgk-0004eN-7x for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 18:49:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3xgg-0005Fk-NB for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 18:49:02 -0500 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:3363 helo=tx2outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3xgg-0005FY-Hq for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 18:48:58 -0500 In-Reply-To: <7201.1360248766@greg-minshalls-mbp.local> (Greg Minshall's message of "Thu, 7 Feb 2013 09:52:46 -0500") 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: Greg Minshall Cc: emacs-orgmode@gnu.org 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! But you are correct that org should check for this case. Or at least provide a mechanism for saving the source code block elsewhere... eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org 7.9.3e-904-g338046