Org-mode mailing list
 help / color / mirror / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [Babel] [Bug] Cache
Date: Thu, 21 Nov 2013 12:13:12 +0100
Message-ID: <86fvqqc8jb.fsf@somewhere.org> (raw)

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

             reply	other threads:[~2013-11-21 11:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 11:13 Sebastien Vauban [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86fvqqc8jb.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git