emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Aaron Ecay
Subject: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results
Date: Tue, 5 Mar 2013 23:07:43 -0500

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

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