From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: [babel] developments Date: Fri, 20 Nov 2009 10:47:49 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBXaR-00040r-PZ for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 12:47:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBXaM-0003z3-OU for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 12:47:59 -0500 Received: from [199.232.76.173] (port=57817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBXaM-0003yx-K1 for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 12:47:54 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:64957) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBXaM-0008GX-6Y for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 12:47:54 -0500 Received: by pwi9 with SMTP id 9so2445403pwi.26 for ; Fri, 20 Nov 2009 09:47:53 -0800 (PST) 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: Org Mode Hi, Dan and I are releasing some accumulated developments. They are described below. We hope to now turn towards improving the documentation and test framework, as we've developed much of it into obsolescence. Best -- Eric - org-babel can now cache the results of source block execution to avoid rerunning the same calculation. The cache uses a sha1 hash key of the source code body and the header arguments to determine if recalculation is required. These hash keys are kept mostly hidden in the #+resname line of the results of the block. This behavior is turned off by default. It is controlled through the :cache and :nocache header arguments. To enable caching on a single block add the :cache header argument, to enable global caching change the value of your `org-babel-default-header-args' variable as follows (setq org-babel-default-header-args (cons '(:cache) (assq-delete-all :nocache org-babel-default-header-args))) - It is now possible to fold results by tabbing on the beginning of the #+resname line. This can be done automatically to all results on opening of a file by adding the following to your org-mode hook (add-hook 'org-mode-hook 'org-babel-result-hide-all) - allow header argument values to be lisp forms, for example the following is now valid :file (format "%s/images/pca-scatter.png" dir) - aliases - 'call' can now be used as an alias for 'lob' - 'results' can now be used as an alias for 'resname' - 'source' or 'function' can now be used as aliases for 'srcname'