From mboxrd@z Thu Jan 1 00:00:00 1970 From: myq Subject: Org Babel resolution of `:var` value reference inconsistent Date: Sun, 01 Nov 2015 23:40:19 -0800 Message-ID: <8737woetng.fsf@toshiba.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt9jH-0006zQ-Tj for emacs-orgmode@gnu.org; Mon, 02 Nov 2015 02:40:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt9jE-0000tg-M2 for emacs-orgmode@gnu.org; Mon, 02 Nov 2015 02:40:35 -0500 Received: from plane.gmane.org ([80.91.229.3]:33843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt9jE-0000tP-Fe for emacs-orgmode@gnu.org; Mon, 02 Nov 2015 02:40:32 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zt9jC-0004hu-Dx for emacs-orgmode@gnu.org; Mon, 02 Nov 2015 08:40:30 +0100 Received: from c-76-105-245-62.hsd1.or.comcast.net ([76.105.245.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Nov 2015 08:40:30 +0100 Received: from myqlarson by c-76-105-245-62.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Nov 2015 08:40:30 +0100 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@gnu.org Sometime since Org version 8.3beta and now, the way Org Babel resolves the value of the `:var` header argument when assigned to a reference has changed. Previously, the following would work when exporting: --8<---------------cut here---------------start------------->8--- * test #+BEGIN_SRC R :var dat=table-data print(summary(dat)); #+END_SRC ** COMMENT #+TBLNAME: table-data | number | measurement | |--------+-------------| | 1 | 10 | --8<---------------cut here---------------end--------------->8--- The above /still/ works when manually evaluating the block (C-c C-c whil in the block), but when exporting, the following error is thrown: `org-babel-ref-resolve: Reference `table-data' not found in this buffer` Curiously, the following tweak works for both manual evaluation and for exporting and produces the same results that the above file used to produce: --8<---------------cut here---------------start------------->8--- #+OPTIONS: inline:nil * test #+BEGIN_SRC R :var dat=table-data print(summary(dat)); #+END_SRC *************** test #+TBLNAME: table-data | number | measurement | |--------+-------------| | 1 | 10 | *************** END --8<---------------cut here---------------end--------------->8--- This seems to be a bug, but perhaps there is a reason for this new behaviour? Thank you in advance for any insights.