From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: export of #+INCLUDE appears broken with :exports results Date: Mon, 15 Oct 2012 13:26:21 +0100 Message-ID: <87391fexaq.fsf@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNjd7-0002Ox-5y for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 08:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNjcy-0008V3-2L for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 08:18:45 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:41659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNjcx-0008Uz-S7 for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 08:18:35 -0400 Received: by mail-wi0-f171.google.com with SMTP id hj13so1536509wib.12 for ; Mon, 15 Oct 2012 05:18:34 -0700 (PDT) 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 Hi, Trying to export as ascii an included file fails with "Reference 'example-table' not found in this buffer". Is this a bug? This is the contents of the file I run C-c C-e a from: * Main #+INCLUDE: "./org-example.org" Where org-example.org contains only the example at http://orgmode.org/org.html#Tables but with the adition of ":exports results": #+TBLNAME: example-table | 1 | | 2 | | 3 | | 4 | #+NAME: table-length #+BEGIN_SRC emacs-lisp :var table=example-table :exports results (length table) #+END_SRC And the error is: Debugger entered--Lisp error: (error "Reference 'example-table' not found in this buffer") signal(error ("Reference 'example-table' not found in this buffer")) error("Reference '%s' not found in this buffer" "example-table") org-babel-ref-resolve("example-table") org-babel-ref-parse("table=example-table") #[(el) "A:\203 A\207\301A!\207" [el org-babel-ref-parse] 2]((:var . "table=example-table")) mapcar(#[(el) "A:\203 A\207\301A!\207" [el org-babel-ref-parse] 2] ((:var . "table=example-table"))) org-babel-process-params(((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "results") (:results . "replace") (:var . "table=example-table") (:session . "none") (:padnewline . "yes") (:hlines . "yes") (:colnames . "no"))) org-babel-exp-src-block(("emacs-lisp" ":var" "table=example-table" ":exports" "results")) org-export-blocks-preprocess() org-export-preprocess-string(#("\n* Main\n#+INCLUDE: \"./org-example.org\"\n" 0 1 (fontified t) 1 3 (fontified t face org-level-1) 3 7 (fontified t face org-level-1) 7 8 (fontified t) 8 38 (fontified t font-lock-fontified t face org-meta-line) 38 39 (fontified t)) :for-backend ascii :skip-before-1st-heading nil :drawers nil :tags not-in-toc :priority nil :footnotes t :timestamps t :todo-keywords t :tasks t :verbatim-multiline t :select-tags ("export") :exclude-tags ("noexport") :archived-trees headline :add-text nil) org-export-as-ascii(nil) call-interactively(org-export-as-ascii) org-export(nil) call-interactively(org-export nil nil) Thanks, Myles