emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: :export results does not replace previous results designated bl


From: Charles Millar
Subject: [O] Bug: :export results does not replace previous results designated block
Date: Mon, 22 Feb 2016 14:56:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]