From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frozenlock Subject: [BUG] ORG-LIST-END-MARKER when exporting from within a babel block with an exclude or include tag Date: Mon, 16 Jan 2012 00:01:19 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rmeh7-00015o-Pp for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 00:01:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rmeh6-0000Gu-RJ for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 00:01:21 -0500 Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:32960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rmeh6-0000Gq-Kx for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 00:01:20 -0500 Received: by obbta7 with SMTP id ta7so1048326obb.0 for ; Sun, 15 Jan 2012 21:01:19 -0800 (PST) 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 Ok, I know this a very specific application. Perhaps it's not even a bug and I'm using it the wrong way. Here is a minimum working example: ---------------------------------------------------- #+TITLE: Test org file #+EXPORT_INCLUDE_TAGS: test2 * First heading :test1: Testing, 1-2, 1-2. * Second heading :test2: Because we can. ** Now a list - First item - Second item #+BEGIN_SRC emacs-lisp :results raw :exports results :var buffer-file-name=(buffer-file-name) (let ((org-export-babel-evaluate nil)); don't evaluate in 'recursive' exports (org-export-as-ascii org-export-headline-levels)) #+END_SRC ---------------------------------------------------- If you export this file to PDF (C-c C-e d), babel will evaluate and export the file as ascii. However, the ascii file will have the undesirable "ORG-LIST-END-MARKER" in it. Here is the resulting ascii export: ---------------------------------------------------- Test org file ============= Author: Date: 2012-01-15 23:51:47 Table of Contents ================= 1 First heading 2 Second heading 2.1 Now a list 1 First heading :test1: ----------------------- Testing, 1-2, 1-2. 2 Second heading :test2: ------------------------ Because we can. 2.1 Now a list =============== - First item - Second item ORG-LIST-END-MARKER ---------------------------------------------------- Any idea on how to fix this?