From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: Cannot include orgmode source code block [7.7] Date: Fri, 11 Nov 2011 14:25:11 -0700 Message-ID: <87k476l5c8.fsf@gmail.com> References: <80sjluz8wi.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROyb9-0000Kg-EA for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROyb6-00084T-QC for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:25:19 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:62540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROyb6-00084G-Ch for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:25:16 -0500 Received: by gyg10 with SMTP id 10so3976136gyg.0 for ; Fri, 11 Nov 2011 13:25:15 -0800 (PST) In-Reply-To: <80sjluz8wi.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 11 Nov 2011 21:44:29 +0100") 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Truong, > > Truong Nghiem wrote: >> I created a following simple org file, in which a source code block of >> language "org" contains orgmode code: >> ======= BEGIN CODE ======== >> #+TITLE: A Test >> >> #+BEGIN_SRC org >> ,#+begin_src python >> #+END_SRC >> >> End of test. >> ======= END CODE ========== >> >> However, when I exported this file, either to HTML or LaTeX/PDF, it >> caused an error: >> >> ad-Orig-error: unbalanced begin/end_src blocks with #("#+BEGIN_SRC org >> ,#+begin_src python >> #+END_SRC" 0 15 (fontified nil font-lock-fontified t) 15 16 (fontified >> nil font-lock-fontified t) 16 37 (fontified nil font-lock-fontified t) >> 37 38 (fontified nil font-lock-fontified t) 38 47 (fontified nil >> font-lock-fontified t)) >> >> I'm using the latest development version of orgmode. Also, if I >> recall correctly, I did succeed to export this kind of code in the >> past (don't remember which version of orgmode though). >> >> If I included #+end_src in the body of the org code block, it would export >> the file, but the result was not what I expected: it was blank. > > I do confirm this, in a very recent Org version, and consider it as a bug too. > I've just pushed up a fix, thanks for the catch. -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/