From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ulrich J. Herter" Subject: Re: code blocks: update cache hash on export Date: Wed, 19 Oct 2016 09:33:53 +0200 Message-ID: <1476862433.2671.2.camel@posteo.de> References: <1476792042.1576.15.camel@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwlNz-0005zM-UR for emacs-orgmode@gnu.org; Wed, 19 Oct 2016 03:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwlNw-0006VZ-SR for emacs-orgmode@gnu.org; Wed, 19 Oct 2016 03:34:04 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54033) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwlNw-0006VC-MO for emacs-orgmode@gnu.org; Wed, 19 Oct 2016 03:34:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 8641620A71 for ; Wed, 19 Oct 2016 09:33:55 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3szNwf6zpbz104Z for ; Wed, 19 Oct 2016 09:33:53 +0200 (CEST) In-Reply-To: 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: emacs-orgmode@gnu.org Am Dienstag, den 18.10.2016, 09:01 -0700 schrieb Charles C. Berry: > On Tue, 18 Oct 2016, Ulrich J. Herter wrote: >=20 > > Hi everybody! > >=20 > > Two questions I'd like to ask the Org-community: >=20 > ?? > > First: > > When I export my document, the source blocks with outdated cache > > hashes > > =C2=A0=C2=A0=C2=A0=C2=A0run, but no new hashes are put in the documen= t. >=20 > Right. The exporter runs in a buffer copy, so the original is not > modified. >=20 > >=20 > > 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! > >=20 > > Is there a switch I missed, or any way to get this behaviour? >=20 > Run org-babel-execute-buffer (or org-babel-execute-subtree) before > you=C2=A0 > export. >=20 > >=20 > >=20 > > Second: > > Is there a function to get the hash of a #+CALL:-block? C-c C-v a > > () > > doesn't work there. > >=20 >=20 > `org-babel-current-result-hash' does this. It is not interactive, so > if=C2=A0 > you want to query the value interactively, you need >=20 > =C2=A0 M-: (org-babel-current-result-hash) >=20 > with point in the CALL line. Or roll it into an interactive function > of=C2=A0 > your own. >=20 > `org-ctrl-c-ctrl-c' will get the value if point is just before the > hash. >=20 > HTH, >=20 > Chuck >=20 Thanks Chuck, that helps.