From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] Bad escape with Babel + org-mode Date: Tue, 02 Jun 2015 17:19:07 +0200 Message-ID: <87iob6rvdg.fsf@nicolasgoaziou.fr> References: <87r3puqj0e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yznwo-0005q3-RL for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 11:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yznwj-0006LG-2q for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 11:17:46 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yznwi-0006Kt-Oi for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 11:17:40 -0400 In-Reply-To: <87r3puqj0e.fsf@gmail.com> (daimrod@gmail.com's message of "Tue, 02 Jun 2015 16:31:29 +0200") 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: Daimrod Cc: emacs-orgmode@gnu.org Hello, Daimrod writes: > I've encountered a bug when using org-mode in source blocks. I'm using > the latest version of org-mode from git: > Org-mode version 8.3beta (release_8.3beta-1195-g1a7364 [...]) > > I have no problem with the following snippet: > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > > #+END_SRC > > But I have an error with this one when I hit C-' to go back to my org > file: > > error in `org-escape-code-in-region'> while: Invalid search bound (wrong side of point) > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > > #+END_SRC > > And with the following snippet: > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > ,* test 12 > #+END_SRC > > When I hit C-' to go back to the org file the block isn't properly > escaped, it becomes: > > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > * test 12 > #+END_SRC Fixed in f91d194d4fe4644de9cac94a807a08c220ab521d. Thank you. Regards, -- Nicolas Goaziou