From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Moreton Subject: Re: Bug: source code editing using C-c ' (org-edit-special) eats characters Date: Thu, 08 Nov 2012 13:04:53 +0000 Message-ID: <509BADF5.6020006@gmail.com> References: <20121023180317.GA21957@localhost> <877gqfvsol.fsf@bzg.ath.cx> <871ug5rp8r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWRn6-0007BT-AQ for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 08:05:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWRn0-00071e-E1 for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 08:05:04 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:61657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWRn0-00071Y-87 for emacs-orgmode@gnu.org; Thu, 08 Nov 2012 08:04:58 -0500 Received: by mail-wi0-f171.google.com with SMTP id hj13so4571430wib.12 for ; Thu, 08 Nov 2012 05:04:57 -0800 (PST) In-Reply-To: <871ug5rp8r.fsf@ucl.ac.uk> 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: emacs-orgmode@gnu.org 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. AndyM