emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] code blocks: update cache hash on export


From: Ulrich J. Herter
Subject: Re: [O] code blocks: update cache hash on export
Date: Wed, 19 Oct 2016 09:33:53 +0200

Am Dienstag, den 18.10.2016, 09:01 -0700 schrieb Charles C. Berry:
> 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
> 
Thanks Chuck, that helps.



reply via email to

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