From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: cannot edit two source code examples simultaneously Date: Mon, 18 May 2009 02:07:11 -0400 Message-ID: <871vqnj65s.fsf@stats.ox.ac.uk> References: <20090515053802.GE13183@hplhtang1> <4FBDF50D-609C-4816-952C-54A83854F528@gmail.com> <87hbzjmyfy.fsf@stats.ox.ac.uk> <1242625016-sup-9305@oz.taruti.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5w0P-0001K6-3M for emacs-orgmode@gnu.org; Mon, 18 May 2009 02:07:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5w0K-0001IQ-73 for emacs-orgmode@gnu.org; Mon, 18 May 2009 02:07:20 -0400 Received: from [199.232.76.173] (port=45264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5w0J-0001IG-Qq for emacs-orgmode@gnu.org; Mon, 18 May 2009 02:07:15 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:60695) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M5w0J-00040m-2i for emacs-orgmode@gnu.org; Mon, 18 May 2009 02:07:15 -0400 In-Reply-To: <1242625016-sup-9305@oz.taruti.net> (Taru Karttunen's message of "Mon, 18 May 2009 08:38:03 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Taru Karttunen Cc: emacs-orgmode Taru Karttunen writes: > Excerpts from Dan Davison's message of Sun May 17 20:28:01 +0300 2009: >> Following on from this, I'd like to suggest that, while it is being >> edited, the source code is removed from the org buffer, to avoid >> concurrency problems. I just had a go at that -- the patch below >> replaces the source code with a work-in-progress message that contains >> a link to the edit buffer. > > Please don't do this. It sounds like a recipe for accidentally losing > the source code when careless. I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? Dan > > - Taru Karttunen > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode