emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] export of #+INCLUDE appears broken with :exports results


From: Myles English
Subject: [O] export of #+INCLUDE appears broken with :exports results
Date: Mon, 15 Oct 2012 13:26:21 +0100
User-agent: mu4e 0.9.9-dev6; emacs 24.2.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]