From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Bug: :export results does not replace previous results designated block Date: Mon, 22 Feb 2016 14:56:32 -0500 Message-ID: <56CB67F0.9070204@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXwbJ-0002fs-UG for emacs-orgmode@gnu.org; Mon, 22 Feb 2016 14:56:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXwbG-0001nX-NA for emacs-orgmode@gnu.org; Mon, 22 Feb 2016 14:56:57 -0500 Received: from vms173019pub.verizon.net ([206.46.173.19]:37581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXwbG-0001k0-HZ for emacs-orgmode@gnu.org; Mon, 22 Feb 2016 14:56:54 -0500 Received: from vz-proxy-l001.mx.aol.com ([64.236.82.151]) by vms173019.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O2Y0032FSQENV90@vms173019.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 22 Feb 2016 13:56:39 -0600 (CST) 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 The last time (last Wednesday or so) I executed the following code ** Some subheading #+NAME: SCHEDAP #+begin_src rec :data foo.rec :type Finance :fields AssetDate,Description,Basis :results silent (File = 'Estate' && AccountSchedule = 'A') #+end_src #+RESULTS: SCHEDAP #+NAME: SCHEDA #+begin_src emacs-lisp :var table=SCHEDAP :exports results (setq table (cons 'hline table)) (setq table (cons '("Date" "Description" "Inventory Value") table)) (setq table (append table '(("|Total Schedule A")))) (setq table (append table '(("\n#+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f::")))) table #+end_src #+ATTR_LATEX: :mode table :environment longtable :align p{60pt}p{300pt}N{8}{2} #+TBLNAME: SCHEDA it produced - ** Some subheading #+NAME: SCHEDAP #+begin_src rec :data foo.rec :type Finance :fields AssetDate,Description,Basis :results silent (File = 'Estate' && AccountSchedule = 'A') #+end_src #+RESULTS: SCHEDAP #+NAME: SCHEDA #+begin_src emacs-lisp :var table=SCHEDAP :exports results (setq table (cons 'hline table)) (setq table (cons '("Date" "Description" "Inventory Value") table)) (setq table (append table '(("|Total Schedule A")))) (setq table (append table '(("\n#+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f::")))) table #+end_src #+ATTR_LATEX: :mode table :environment longtable :align p{60pt}p{300pt}N{8}{2} #+TBLNAME: SCHEDA (Desired table out put here) #+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f:: Today, if I execute or evaluate the subheading, the results are not substituted into TBLNAME, rather a #+RESULTS: SCHEDA is produced followed by #+TBLNAME: SCHEDA, etc. ** Some subheading #+NAME: SCHEDAP #+begin_src rec :data foo.rec :type Finance :fields AssetDate,Description,Basis :results silent (File = 'Estate' && AccountSchedule = 'A') #+end_src #+RESULTS: SCHEDAP #+NAME: SCHEDA #+begin_src emacs-lisp :var table=SCHEDAP :exports results (setq table (cons 'hline table)) (setq table (cons '("Date" "Description" "Inventory Value") table)) (setq table (append table '(("|Total Schedule A")))) (setq table (append table '(("\n#+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f::")))) table #+end_src #+RESULTS: SCHEDA (a new table) #+TBLFM: @>$>=vsum(@I$>..@>>$>);%.2f:: #+TBLNAME: SCHEDA #+ATTR_LATEX: :mode table :environment longtable :align p{60pt}p{300pt}N{8}{2} (no table produced or retained) Org-mode version 8.3.3 (release_8.3.3-644-g84e3f2 @ /usr/local/share/emacs/site-lisp/org-mode/lisp/) GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian Should I change the code blocks or is this a bug? All of tables generated by the same or similar code behave the same way - a table after #+RESULTS: foobar is , but nothing for #+TBLNAME: foobar. Charlie Millar