emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export of #+INCLUDE appears broken with :exports results
@ 2012-10-15 12:26 Myles English
  2012-10-15 12:30 ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Myles English @ 2012-10-15 12:26 UTC (permalink / raw)
  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) "\bA:\203	\bA\207\301\bA!\207" [el org-babel-ref-parse] 2]((:var . "table=example-table"))
  mapcar(#[(el) "\bA:\203	\bA\207\301\bA!\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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-20 11:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-15 12:26 export of #+INCLUDE appears broken with :exports results Myles English
2012-10-15 12:30 ` Sebastien Vauban
2012-10-15 13:27   ` Myles English
2012-12-18 17:27     ` Bastien
2012-12-18 18:24       ` Nicolas Goaziou
2012-12-20 11:26         ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).