From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: cannot edit two source code examples simultaneously Date: Sat, 16 May 2009 19:39:35 +0200 Message-ID: <4FBDF50D-609C-4816-952C-54A83854F528@gmail.com> References: <20090515053802.GE13183@hplhtang1> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1681961320==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5NsQ-0007lt-Q9 for emacs-orgmode@gnu.org; Sat, 16 May 2009 13:40:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5NsM-0007ja-4w for emacs-orgmode@gnu.org; Sat, 16 May 2009 13:40:50 -0400 Received: from [199.232.76.173] (port=48371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5NsL-0007jS-VK for emacs-orgmode@gnu.org; Sat, 16 May 2009 13:40:46 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:59497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M5NsL-0007Jb-IX for emacs-orgmode@gnu.org; Sat, 16 May 2009 13:40:45 -0400 Received: by mail-ew0-f162.google.com with SMTP id 6so3266085ewy.42 for ; Sat, 16 May 2009 10:40:45 -0700 (PDT) In-Reply-To: <20090515053802.GE13183@hplhtang1> 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: Hsiu-Khuern Tang Cc: emacs-orgmode@gnu.org --===============1681961320== Content-Type: multipart/alternative; boundary=Apple-Mail-2-47886709 --Apple-Mail-2-47886709 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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. - Carsten --Apple-Mail-2-47886709 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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.

- = Carsten


= --Apple-Mail-2-47886709-- --===============1681961320== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1681961320==--