emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert


From: Aaron Ecay
Subject: Re: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results
Date: Fri, 8 Mar 2013 16:25:20 -0500

On Tue, Mar 5, 2013 at 11:07 PM, Aaron Ecay <address@hidden> wrote:
> In order for the cache feature to work, the hash of a finished
> computation must be inserted.  But, this is not currently done for src
> blocks which have the option :results none.  Thus, we should insert a
> dummy empty result for these blocks, which will hold the hash.
> ---
>  lisp/ob-core.el | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/ob-core.el b/lisp/ob-core.el
> index 3b7c463..eabfc05 100644
> --- a/lisp/ob-core.el
> +++ b/lisp/ob-core.el
> @@ -576,7 +576,10 @@ block."
>                 (if (member "none" result-params)
>                     (progn
>                       (funcall cmd body params)
> -                     (message "result silenced"))
> +                     (message "result silenced")
> +                     (when cachep

The above should be cache-p (with hyphen).

> +                       (org-babel-insert-result
> +                        "" result-params info new-hash indent lang)))
>                 (setq result
>                       ((lambda (result)
>                          (if (and (eq (cdr (assoc :result-type params)) 
> 'value)
> --
> 1.8.1.5
>



reply via email to

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