From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: export of #+INCLUDE appears broken with :exports results Date: Mon, 15 Oct 2012 14:30:19 +0200 Message-ID: <80hapvc3z8.fsf@somewhere.org> References: <87391fexaq.fsf@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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