From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Re: cannot edit two source code examples simultaneously Date: Mon, 18 May 2009 17:32:17 -0700 Message-ID: <20090519003216.GL13183@hplhtang1> References: <20090515053802.GE13183@hplhtang1> <4FBDF50D-609C-4816-952C-54A83854F528@gmail.com> Reply-To: Hsiu-Khuern Tang 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 1M6DHX-0000n3-AB for emacs-orgmode@gnu.org; Mon, 18 May 2009 20:34:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6DHS-0000mD-HQ for emacs-orgmode@gnu.org; Mon, 18 May 2009 20:34:10 -0400 Received: from [199.232.76.173] (port=49890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6DHS-0000mA-9e for emacs-orgmode@gnu.org; Mon, 18 May 2009 20:34:06 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]:61456) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6DHR-0008CH-IQ for emacs-orgmode@gnu.org; Mon, 18 May 2009 20:34:06 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by madara.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id n4J0WPap026282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 18 May 2009 17:32:25 -0700 (PDT) Received: from hplhtang1.hpl.hp.com (hplhtang1.hpl.hp.com [15.4.92.205]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id n4J0WP7s007280 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 18 May 2009 17:32:25 -0700 Received: from htang by hplhtang1.hpl.hp.com with local (Exim 4.69) (envelope-from ) id 1M6DFh-0006Wx-P9 for emacs-orgmode@gnu.org; Mon, 18 May 2009 17:32:17 -0700 Content-Disposition: inline In-Reply-To: <4FBDF50D-609C-4816-952C-54A83854F528@gmail.com> 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: "emacs-orgmode@gnu.org" * On Sat 05:39PM +0000, 16 May 2009, Carsten Dominik (carsten.dominik@gmail.com) wrote: > Hi Hsiu-Khuern, > > On May 15, 2009, at 7:38 AM, Hsiu-Khuern Tang wrote: > > Hi Carsten, > > You recently changed org-edit-src-code to use a separate buffer instead of an > indirect buffer. One side effect of this is that I can no longer edit several > code examples at the same time: opening the second buffer will silently discard > any changes made in the first. I would prefer this behavior: when opening the > second edit source buffer, write any changes in the first buffer to the > originating Org buffer (but don't save it, of course). > > Another approach is to use different buffer names. > > I think the second idea is better, provided that a mechanism > ensures that not two editing instances of the same region > are created. This is what I have implemented now. Thank > you for your report. Thanks for implementing this and the subsequent refinements based on Dan's and Taru's inputs! -- Best, Hsiu-Khuern.