Aaron Ecay <aarone...@gmail.com> writes: > On Tue, Mar 5, 2013 at 11:07 PM, Aaron Ecay <aarone...@gmail.com> 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). >
The hyphen should only be required for multi-word functions, e.g., `listp' has no hyphen but `hash-table-p' does have a 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 >> > -- Eric Schulte http://cs.unm.edu/~eschulte