From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: source code editing using C-c ' (org-edit-special) eats characters Date: Thu, 08 Nov 2012 10:27:16 -0700 Message-ID: <87625gj98r.fsf@gmail.com> References: <20121023180317.GA21957@localhost> <877gqfvsol.fsf@bzg.ath.cx> <871ug5rp8r.fsf@ucl.ac.uk> <509BADF5.6020006@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWVs5-0004oO-QR for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 12:26:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWVrv-0007Nd-0I for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 12:26:29 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:57323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWVru-0007ND-Qs for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 12:26:18 -0500 Received: by mail-ie0-f169.google.com with SMTP id 10so5640187ied.0 for ; Thu, 08 Nov 2012 09:26:17 -0800 (PST) In-Reply-To: <509BADF5.6020006@gmail.com> (Andy Moreton's message of "Thu, 08 Nov 2012 13:04:53 +0000") 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: Andy Moreton Cc: emacs-orgmode@gnu.org Andy Moreton writes: > On 07/11/2012 23:02, Eric S Fraga wrote: >> Andy Moreton writes: >>> I'm seeing a similar problem in emacs trunk (r110821) where "C-c '" in >>> the *Org Src* buffer closes the source edit window and discards the >>> entire contents of the source block. >>> >>> Should I raise an emacs bug for this ? >>> >>> AndyM >> >> I've seen this happen recently as well, specifically where I have added >> comment lines to the source, e.g. lines starting with # in sh src code >> blocks. I was in a rush to get something done so didn't stop to try to >> figure out what was happening or to generate a minimal example. I also >> don't know if it's still happening -- this happened to me late last >> week, IRC. I also don't know if the problem was dependent on the >> version of Emacs as I use three systems daily (long story). > > This problem does seem difficult to reproduce consistently. > Editing this to add new source discarded all edits: > > #+begin_src c > #+end_src > > Changing it to use "C" made it keep the edits: > > #+begin_src C > #+end_src > > However after changing the source block back to using "c", the problem did not > return. > > I've seen problems more consistently with shell script blocks: > > #+begin_src shell-script > #+end_src > > I'll try to produce a recipe that can consistently show this problem. > I have a similar and possibly related problem which I can consistently reproduce. In any Org-mode buffer create and enter an empty code block, I like to do this with " > AndyM > > -- Eric Schulte http://cs.unm.edu/~eschulte