From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: PROPERTIES attached to results blocks - Was: Set or update timestamp after evaluation of code block? Date: Tue, 22 Sep 2015 08:52:41 -0700 Message-ID: References: <87pp1bsyhn.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZePsA-0002Ov-H5 for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 11:52:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZePs7-0006iJ-8z for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 11:52:50 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:35498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZePs7-0006hL-0j for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 11:52:47 -0400 In-Reply-To: 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: Rainer M Krug Cc: John Kitchin , "emacs-orgmode@gnu.org" , Grant Rettke On Tue, 22 Sep 2015, Rainer M Krug wrote: > Grant Rettke writes: > >> Might be nice to have properties attached to result blocks. That is a nice idea. > > True. These could be used for in the long run many > purposes, like formating for export. If the formating would be defined > in the properties of the result block, it would make it easy to have > different formating for export when using multiple result blocks. > This is available through babel as in the `latex' language src blocks. Add a new babel language - `results', says. Use :wrap or :post to setup the `results' src block: --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC emacs-lisp :wrap "src results :properties abc" 1 #+END_SRC #+RESULTS: #+BEGIN_src results :properties abc 1 #+END_src --8<---------------cut here---------------end--------------->8--- ... then define a babel language 'results' along the line of ob-latex.el with suitable `org-babel-header-args:results' and you are there. HTH, Chuck