From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: [Babel] [Ann] varied updates and improvements Date: Sat, 1 Jan 2011 11:09:49 -1000 Message-ID: <9EEC164E-4A7C-4E95-91BC-B543C5A7A034@tsdye.com> References: <87lj5r1vf8.fsf@gmail.com> <306D1534-5DF6-4B6F-9AAB-8B28379BF62E@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0461042912==" Return-path: Received: from [140.186.70.92] (port=34635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ8iA-0004mj-Ve for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:10:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ8i9-0006RX-3G for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:10:02 -0500 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:51400) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PZ8i8-0006R9-Qc for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 16:10:01 -0500 In-Reply-To: <306D1534-5DF6-4B6F-9AAB-8B28379BF62E@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode --===============0461042912== Content-Type: multipart/alternative; boundary=Apple-Mail-5--71106880 --Apple-Mail-5--71106880 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, Sorry for the noise. I'm not sure how I was using version 7.01trans with release_7.4.93, but now that I'm using version 7.4 with that release, the code below works as expected. Tom On Jan 1, 2011, at 10:41 AM, Thomas S. Dye wrote: > Aloha all, > > Code block caching doesn't seem to notice if the value of a variable > argument has changed. Here is what I get with Org-mode version > 7.01trans (release_7.4.93.g40264e.dirty) when I run both code blocks > (I'm expecting caller to recognize that random has changed). > > #+srcname: random > #+begin_src R :cache yes > runif(3) > #+end_src > > #+results[bbaaac2c187b718287fb9e9b60dc3d096eca28c0]: random > | 0.292331680655479 | > | 0.547373940004036 | > | 0.770326626254246 | > > > #+srcname: caller > #+begin_src emacs-lisp :var x=random :cache yes > x > #+end_src > > #+results[9e659075e616e3fc068e697bd3aff9d0bfa0f5d8]: caller > : 0.707728253444657 > > Tom > > On Oct 21, 2010, at 4:18 AM, Eric Schulte wrote: > >> Improved Caching >> ----------------- >> Code block caches now notice if the value of a variable argument >> to the code block has changed, if this is the case the cache is >> invalidated and the code block is re-run. The following example >> can provide intuition for the new behavior. >> >> #+srcname: random >> #+begin_src R :cache yes >> runif(1) >> #+end_src >> >> #+results[a2a72cd647ad44515fab62e144796432793d68e1]: random >> 0.4659510825295 >> >> #+srcname: caller >> #+begin_src emacs-lisp :var x=random :cache yes >> x >> #+end_src >> >> #+results[bec9c8724e397d5df3b696502df3ed7892fc4f5f]: caller >> 0.254227238707244 > > > > Thomas S. Dye, Ph.D. > T. S. Dye & Colleagues, Archaeologists, Inc. > Phone: (808) 529-0866 Fax: (808) 529-0884 > http://www.tsdye.com > > > _______________________________________________ > 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 --Apple-Mail-5--71106880 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

Sorry for the noise.  I'm not sure how I = was using version 7.01trans with release_7.4.93, but now that I'm using = version 7.4 with that release, the code below works as = expected.

Tom
On Jan 1, 2011, at = 10:41 AM, Thomas S. Dye wrote:

Aloha = all,

Code block caching doesn't seem to notice if the = value of a variable argument has changed.  Here is what I get = with Org-mode version 7.01trans (release_7.4.93.g40264e.dirty) when = I run both code blocks (I'm expecting caller to recognize that random = has changed).

#+srcname: = random
#+begin_src R :cache = yes
runif(3)
#+end_src

#+resu= lts[bbaaac2c187b718287fb9e9b60dc3d096eca28c0]: random
| = 0.292331680655479 |
| 0.547373940004036 |
| = 0.770326626254246 |


#+srcname: = caller
#+begin_src emacs-lisp :var x=3Drandom :cache = yes
x
#+end_src

#+results[9e6= 59075e616e3fc068e697bd3aff9d0bfa0f5d8]: caller
: = 0.707728253444657

Tom

On Oct 21, 2010, at 4:18 AM, Eric Schulte wrote:

Improved = Caching 
-----------------
Code= block caches now notice if the value of a variable argument
to the = code block has changed, if this is the case the cache is
invalidated = and the code block is re-run.  The following example
can provide = intuition for the new behavior.

 #+srcname: = random
 #+begin_src R :cache = yes
 runif(1)
 #+end_src

 #+results[a2a72cd647= ad44515fab62e144796432793d68e1]: = random
 0.4659510825295

 #+srcname: = caller
 #+begin_src emacs-lisp :var x=3Drandom :cache = yes
 x
 #+end_src

 #+results[bec9c8724e397d5df= 3b696502df3ed7892fc4f5f]: = caller
 0.254227238707244



=
Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, = Inc.
Phone: (808) 529-0866 Fax: = (808) 529-0884
=

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

= --Apple-Mail-5--71106880-- --===============0461042912== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0461042912==--