From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: [Babel] [Ann] varied updates and improvements Date: Sat, 1 Jan 2011 11:01:04 -1000 Message-ID: <5DE633CA-0B3B-4EDB-B38E-F0DFCBE57418@tsdye.com> References: <87lj5r1vf8.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=38789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ8Za-0002XP-Sy for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:01:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ8ZZ-0005X5-KW for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:01:10 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:58743) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PZ8ZZ-0005Wx-B1 for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:01:09 -0500 In-Reply-To: <87lj5r1vf8.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode Aloha all, I'm seeing some unexpected behavior with source blocks as I'm adding :cache yes as a multi-line header argument. The top #+results: is with the addition of the #+header: :cache yes line. Note the lack of a :results name and also the lack of the SHA1 hash. The bottom # +results: line is the result before addition of the #+header: line. #+srcname: r-edge-angle-histogram #+header: :cache yes #+begin_src R :results output :var x=whole-adzes :file r/ adze_edge_angle.png :width 400 :height 300 library(ggplot2) adze.edge.angle <- ggplot(x, aes(edge_angle)) adze.edge.angle + geom_histogram(aes(y=..density..)) + geom_density(weight=2) + xlab("Measured cutting edge angle (degrees)") #+end_src #+results: [[file:r/adze_edge_angle.png]] #+results: r-edge-angle-histogram [[file:r/adze_edge_angle.png]] All the best, Tom On Oct 21, 2010, at 4:18 AM, Eric Schulte wrote: > Multi-line header arguments to code blocks > ------------------------------------------- > Code block header arguments can now span multiple lines using the > new =#+header:= or =#+headers:= lines preceding a code block or > nested in between the name and body of a named code block. > Examples are given below. > > - multi-line header arguments on an un-named code block > #+headers: :var data1=1 > #+begin_src emacs-lisp :var data2=2 > (message "data1:%S, data2:%S" data1 data2) > #+end_src > > #+results: > : data1:1, data2:2 > > - multi-line header arguments on a named code block > #+source: named-block > #+header: :var data=2 > #+begin_src emacs-lisp > (message "data:%S" data) > #+end_src > > #+results: named-block > : data:2