emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [babel] exports, caching, remote execution


From: Eric Schulte
Subject: Re: [Orgmode] Re: [babel] exports, caching, remote execution
Date: Wed, 25 Aug 2010 12:04:06 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Tom,

Thanks for pointing this out.  It appears that during export the code
block is evaluated in an altered version of the original buffer in which
(for some reason) Babel is sometimes not able to find properties which
are tucked away in either a #+Babel: line at the top of the file, or as
properties of an enclosing headline level.

This certainly merits a closer investigation, and has been recorded as a
bug.  Most likely it will require picking apart the subtleties of the
actions taken by the exporter.

Thanks -- Eric

Tom Short <address@hidden> writes:

> Eric Schulte <schulte.eric <at> gmail.com> writes:
>
>> 
>> Hi Austin,
>> 
>> Austin Frank <austin.frank <at> gmail.com> writes:
>> 
>> > Hey all--
>> >
>> > Two (hopefully quick) questions:
>> >
>> > 1) Does the exporter respect the :cache argument?  When I evaluate a
>> >    buffer, I can tell that cached blocks are not re-run, as expected.
>> >    When I export to \LaTeX or PDF, it seems that all blocks in the file
>> >    are re-run.  Is there a way to force the exporter to respect caching?
>> >
>> 
>> I believe the exporter does respect caching, the following minimal
>> example worked (i.e. was not re-run) for me on export to html.  Could
>> you provide an example that demonstrates the problem?
>
> Eric, here's an example where the exporter does not respect caching. - Tom
>
> #+BABEL: :session *R* :results output :exports both :cache yes
>
> * A test of caching
>
> #+begin_src R 
>   cat("random result:", runif(1), "\n")
>   Sys.sleep(2)
>   alarm()
> #+end_src 
>
> #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]:
> : random result: 0.2799064
>
> #+begin_src R 
>   cat("random result:", runif(1), "\n")
>   Sys.sleep(2)
>   alarm()
> #+end_src 
>
> #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]:
> : random result: 0.1625634
>
> ** cache on export
> do we export cached blocks
>
> #+begin_src emacs-lisp :cache yes :exports results
>   (random)
> #+end_src
>
> #+results[46632b4fe2e3a23e847953c95adcba58c270b381]:
> : 490528137
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

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