From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: code blocks: update cache hash on export Date: Tue, 18 Oct 2016 09:01:03 -0700 Message-ID: References: <1476792042.1576.15.camel@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwWpY-00041O-DS for emacs-orgmode@gnu.org; Tue, 18 Oct 2016 12:01:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwWpU-0006WR-Ch for emacs-orgmode@gnu.org; Tue, 18 Oct 2016 12:01:32 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:3189) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwWpU-0006W3-0T for emacs-orgmode@gnu.org; Tue, 18 Oct 2016 12:01:28 -0400 In-Reply-To: <1476792042.1576.15.camel@posteo.de> 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" To: "Ulrich J. Herter" Cc: emacs-orgmode@gnu.org On Tue, 18 Oct 2016, Ulrich J. Herter wrote: > Hi everybody! > > Two questions I'd like to ask the Org-community: ?? > First: > When I export my document, the source blocks with outdated cache hashes > run, but no new hashes are put in the document. Right. The exporter runs in a buffer copy, so the original is not modified. > > I would like to have the hashes updated when the run on export, so next > time I export the don't need to be evaluated. This would save a lot > quite some time! > > Is there a switch I missed, or any way to get this behaviour? Run org-babel-execute-buffer (or org-babel-execute-subtree) before you export. > > > Second: > Is there a function to get the hash of a #+CALL:-block? C-c C-v a () > doesn't work there. > `org-babel-current-result-hash' does this. It is not interactive, so if you want to query the value interactively, you need M-: (org-babel-current-result-hash) with point in the CALL line. Or roll it into an interactive function of your own. `org-ctrl-c-ctrl-c' will get the value if point is just before the hash. HTH, Chuck