emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Bug? :cache yes ignored when :noweb yes
@ 2011-02-24 18:07 Andreas Leha
  2011-02-26  0:29 ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Leha @ 2011-02-24 18:07 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

Hi all,

When ':noweb yes' is in the header, ':cache yes' is ignored during
export.  (At least when I export the sample file below.)

To me this seems to be a bug.  Or am I missing something?

Regards,
Andreas

PS: Example:
====================
* Test
  #+srcname: test_sleep
  #+begin_src R :session :exports code
    Sys.sleep(time=5)
    1:10
  #+end_src

  #+srcname: test_sleep
  #+begin_src R :session :exports results :noweb yes :cache yes
    <<test_sleep>>
  #+end_src

  #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep
  |  1 |
  |  2 |
  |  3 |
  |  4 |
  |  5 |
  |  6 |
  |  7 |
  |  8 |
  |  9 |
  | 10 |
==============================



[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6432 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Bug? :cache yes ignored when :noweb yes
  2011-02-24 18:07 [babel] Bug? :cache yes ignored when :noweb yes Andreas Leha
@ 2011-02-26  0:29 ` Eric Schulte
  2011-02-26 10:50   ` Andreas Leha
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2011-02-26  0:29 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Hi Andreas,

This exact example worked for me -- that is the results were returned
without executing the "sleep 5" code.

Maybe you are using an old version of Org, or you have non-standard
default header argument values?

Best -- Eric

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Hi all,
>
> When ':noweb yes' is in the header, ':cache yes' is ignored during
> export.  (At least when I export the sample file below.)
>
> To me this seems to be a bug.  Or am I missing something?
>
> Regards,
> Andreas
>
> PS: Example:
> ====================
> * Test
>   #+srcname: test_sleep
>   #+begin_src R :session :exports code
>     Sys.sleep(time=5)
>     1:10
>   #+end_src
>
>   #+srcname: test_sleep
>   #+begin_src R :session :exports results :noweb yes :cache yes
>     <<test_sleep>>
>   #+end_src
>
>   #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep
>   |  1 |
>   |  2 |
>   |  3 |
>   |  4 |
>   |  5 |
>   |  6 |
>   |  7 |
>   |  8 |
>   |  9 |
>   | 10 |
> ==============================
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Bug? :cache yes ignored when :noweb yes
  2011-02-26  0:29 ` Eric Schulte
@ 2011-02-26 10:50   ` Andreas Leha
  2011-02-27 18:03     ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Leha @ 2011-02-26 10:50 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1.1: Type: text/plain, Size: 1863 bytes --]

Hi Eric,

thanks for testing this.  It works for me when executing as well.  But
not when exporting.  Does that work for you?

I have tested this on two computers with the latest git version.

Cheers,
Andreas

Am 26.02.2011 01:29, schrieb Eric Schulte:
> Hi Andreas,
>
> This exact example worked for me -- that is the results were returned
> without executing the "sleep 5" code.
>
> Maybe you are using an old version of Org, or you have non-standard
> default header argument values?
>
> Best -- Eric
>
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>   
>> Hi all,
>>
>> When ':noweb yes' is in the header, ':cache yes' is ignored during
>> export.  (At least when I export the sample file below.)
>>
>> To me this seems to be a bug.  Or am I missing something?
>>
>> Regards,
>> Andreas
>>
>> PS: Example:
>> ====================
>> * Test
>>   #+srcname: test_sleep
>>   #+begin_src R :session :exports code
>>     Sys.sleep(time=5)
>>     1:10
>>   #+end_src
>>
>>   #+srcname: test_sleep
>>   #+begin_src R :session :exports results :noweb yes :cache yes
>>     <<test_sleep>>
>>   #+end_src
>>
>>   #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep
>>   |  1 |
>>   |  2 |
>>   |  3 |
>>   |  4 |
>>   |  5 |
>>   |  6 |
>>   |  7 |
>>   |  8 |
>>   |  9 |
>>   | 10 |
>> ==============================
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>     
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>   


[-- Attachment #1.1.2: andreas_leha.vcf --]
[-- Type: text/x-vcard, Size: 377 bytes --]

begin:vcard
fn:Andreas Leha
n:Leha;Andreas
org;quoted-printable:University Medicine G=C3=B6ttingen;Biostatistics/Bioinformatics (Dept. Medical Statistics)
adr;quoted-printable:;;Humboldallee 32;G=C3=B6ttingen;;37073;Germany
email;internet:andreas.leha@med.uni-goettingen.de
title:Dipl. Inf.
tel;work:+49 551 39-10710
tel;cell:+49 163 7662824
version:2.1
end:vcard


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6432 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [babel] Bug? :cache yes ignored when :noweb yes
  2011-02-26 10:50   ` Andreas Leha
@ 2011-02-27 18:03     ` Eric Schulte
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2011-02-27 18:03 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Hi Eric,
>
> thanks for testing this.  It works for me when executing as well.  But
> not when exporting.  Does that work for you?
>
> I have tested this on two computers with the latest git version.
>

Oh, I see, sorry I missed that in your original email.  I've just pushed
up change which should fix this issue.

Best -- Eric

>
> Cheers,
> Andreas
>
> Am 26.02.2011 01:29, schrieb Eric Schulte:
>> Hi Andreas,
>>
>> This exact example worked for me -- that is the results were returned
>> without executing the "sleep 5" code.
>>
>> Maybe you are using an old version of Org, or you have non-standard
>> default header argument values?
>>
>> Best -- Eric
>>
>> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>>
>>   
>>> Hi all,
>>>
>>> When ':noweb yes' is in the header, ':cache yes' is ignored during
>>> export.  (At least when I export the sample file below.)
>>>
>>> To me this seems to be a bug.  Or am I missing something?
>>>
>>> Regards,
>>> Andreas
>>>
>>> PS: Example:
>>> ====================
>>> * Test
>>>   #+srcname: test_sleep
>>>   #+begin_src R :session :exports code
>>>     Sys.sleep(time=5)
>>>     1:10
>>>   #+end_src
>>>
>>>   #+srcname: test_sleep
>>>   #+begin_src R :session :exports results :noweb yes :cache yes
>>>     <<test_sleep>>
>>>   #+end_src
>>>
>>>   #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep
>>>   |  1 |
>>>   |  2 |
>>>   |  3 |
>>>   |  4 |
>>>   |  5 |
>>>   |  6 |
>>>   |  7 |
>>>   |  8 |
>>>   |  9 |
>>>   | 10 |
>>> ==============================
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>     
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-27 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 18:07 [babel] Bug? :cache yes ignored when :noweb yes Andreas Leha
2011-02-26  0:29 ` Eric Schulte
2011-02-26 10:50   ` Andreas Leha
2011-02-27 18:03     ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).