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
+                       (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