From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results Date: Tue, 5 Mar 2013 23:07:43 -0500 Message-ID: <1362542863-25992-1-git-send-email-aaronecay@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD5dr-0006n5-0I for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD5dq-0006EZ-2d for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:46 -0500 Received: from mail-qe0-f45.google.com ([209.85.128.45]:46270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD5dp-0006ER-VB for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:46 -0500 Received: by mail-qe0-f45.google.com with SMTP id b4so5065111qen.4 for ; Tue, 05 Mar 2013 20:07:45 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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