emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] [Bug] Cache
@ 2013-11-21 11:13 Sebastien Vauban
  2013-11-22 15:03 ` Eric Schulte
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastien Vauban @ 2013-11-21 11:13 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Eric,

IIRC, some time ago, a bug involving the computation of the hash (when option
cache is enabled) and NoWeb code blocks. I remember that it had been fixed.

However, the following example shows it's not (true anymore):

--8<---------------cut here---------------start------------->8---
#+PROPERTY: cache yes

#+name: common-code
#+begin_src R :eval no
s <- "Hello"
#+end_src

#+begin_src R :noweb yes
<<common-code>>

print(s)
#+end_src

#+results[f472c44e64e310a6d06544dbdfba558a709873a7]:
: Hello
--8<---------------cut here---------------end--------------->8---

Change the "common code" block: edit "Hello", for example, and you'll see that
the evaluation of the other code block is not redone (like if the NoWeb code
was not expanded for computing the hash). It stays printing "Hello".

Best regards,
  Seb

-- 
Sebastien Vauban

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

end of thread, other threads:[~2013-12-07  2:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 11:13 [Babel] [Bug] Cache Sebastien Vauban
2013-11-22 15:03 ` Eric Schulte
2013-12-02 15:46   ` Sebastien Vauban
2013-12-06 19:15     ` Eric Schulte
2013-12-06 19:57       ` Achim Gratz
2013-12-06 20:04         ` Sebastien Vauban
2013-12-07  2:29         ` 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).