* 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
* Re: export of #+INCLUDE appears broken with :exports results
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
0 siblings, 1 reply; 6+ messages in thread
From: Sebastien Vauban @ 2012-10-15 12:30 UTC (permalink / raw
To: emacs-orgmode-mXXj517/zsQ
Hi Myles,
Myles English wrote:
> 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")
Did you try first locally in the same file?
Did you try with downcase for the TBLNAME keyword? I know it (all upper or
down-case) was important at some point in time, but don't remember if this is
still of importance.
Best regards
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: export of #+INCLUDE appears broken with :exports results
2012-10-15 12:30 ` Sebastien Vauban
@ 2012-10-15 13:27 ` Myles English
2012-12-18 17:27 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Myles English @ 2012-10-15 13:27 UTC (permalink / raw
To: Sebastien Vauban; +Cc: emacs-orgmode
Hi Sebastien,
Sebastien Vauban writes:
> Did you try first locally in the same file?
Eh? Include the file in itself? If you mean did I execute the source
block: yes, and it works.
> Did you try with downcase for the TBLNAME keyword? I know it (all upper or
> down-case) was important at some point in time, but don't remember if this is
> still of importance.
I have tried all those variations, and using #+name instead of #+tblname
the only thing that makes a difference is removing ":exports results".
I think it a bug.
Myles
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: export of #+INCLUDE appears broken with :exports results
2012-10-15 13:27 ` Myles English
@ 2012-12-18 17:27 ` Bastien
2012-12-18 18:24 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-12-18 17:27 UTC (permalink / raw
To: Myles English; +Cc: Sebastien Vauban, emacs-orgmode
Hi Myles,
"Myles English" <mylesenglish@gmail.com> writes:
>> Did you try with downcase for the TBLNAME keyword? I know it (all upper or
>> down-case) was important at some point in time, but don't remember if this is
>> still of importance.
>
> I have tried all those variations, and using #+name instead of #+tblname
> the only thing that makes a difference is removing ":exports results".
> I think it a bug.
I confirm this bug -- I'll wait and see if nicolas can have a look for
the new exporter.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: export of #+INCLUDE appears broken with :exports results
2012-12-18 17:27 ` Bastien
@ 2012-12-18 18:24 ` Nicolas Goaziou
2012-12-20 11:26 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2012-12-18 18:24 UTC (permalink / raw
To: Bastien; +Cc: Sebastien Vauban, Myles English, emacs-orgmode
Hello,
Bastien <bzg@altern.org> writes:
>> I have tried all those variations, and using #+name instead of #+tblname
>> the only thing that makes a difference is removing ":exports results".
>> I think it a bug.
>
> I confirm this bug -- I'll wait and see if nicolas can have a look for
> the new exporter.
I cannot reproduce this with the new exporter.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: export of #+INCLUDE appears broken with :exports results
2012-12-18 18:24 ` Nicolas Goaziou
@ 2012-12-20 11:26 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2012-12-20 11:26 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Sebastien Vauban, Myles English, emacs-orgmode
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> I cannot reproduce this with the new exporter.
Me neither.. I must have been using the wrong exporter.
Thanks for double-checking, and glad there is no bug here
for the new exporter!
--
Bastien
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.