From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Re: Bug: source code editing using C-c ' (org-edit-special) eats characters Date: Tue, 23 Oct 2012 14:16:09 -0700 Message-ID: <20121023211606.GB21957@localhost> References: <20121023180317.GA21957@localhost> <7429.1351024314@alphaville.americas.hpqcorp.net> Reply-To: Hsiu-Khuern Tang Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQlqI-0007PB-7f for emacs-orgmode@gnu.org; Tue, 23 Oct 2012 17:16:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQlq9-00029T-21 for emacs-orgmode@gnu.org; Tue, 23 Oct 2012 17:16:54 -0400 Received: from b.mail.sonic.net ([64.142.19.5]:50538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQlq8-00027c-Pc for emacs-orgmode@gnu.org; Tue, 23 Oct 2012 17:16:44 -0400 Content-Disposition: inline In-Reply-To: <7429.1351024314@alphaville.americas.hpqcorp.net> 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: Nick Dokos Cc: orgmode * On Tue 04:31PM, 23 Oct 2012, Nick Dokos (nicholas.dokos@hp.com) wrote: > Hsiu-Khuern Tang wrote: > > > Hi, > > > > Sorry if this has been reported -- a brief search didn't turn up anything. > > > > Start with this 3-line org file: > > > > -------------------------------------------------- > > #+begin_example > > > > #+end_example > > -------------------------------------------------- > > > > Do these steps: > > - go to the 2nd line > > - type C-c ' to edit the source example > > - type some text in the new buffer, such as "test" > > - type C-c ' to exit > > > > What I get is this: > > -------------------------------------------------- > > #+begin_example test#+end_example > > -------------------------------------------------- > > > > Anyone else able to reproduce this? > > > > ... > It depends on what you type exactly: typing "test" with no extra > newlines produces the result above for me. If I add newlines, I get > "funny-looking" results with the #+END_EXAMPLE indented some. > > Since it does not know a language, the buffer is in fundamental mode > and you get (modulo funny indentation perhaps) whatever you type. > > Nick Thanks for checking. The problem also shows up if I replace begin_example by begin_src r (say), so it's not just because Org doesn't know the language. Also, if I start with -------------------------------------------------- #+begin_example #+end_example -------------------------------------------------- and repeat the above steps (but typing C-c ' on the /first/ line), the output becomes -------------------------------------------------- #+begin_exampl test +end_example -------------------------------------------------- Note that the last "e" of "begin_example" got dropped! -- Best, Hsiu-Khuern.