From f0adc09a426ebe6d7809ea5bcd78745a799e05c2 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 18 Jul 2009 13:12:13 -0600 Subject: [PATCH 1/2] added discussion of: PROPOSED optional timestamp for output --- org-babel.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/org-babel.org b/org-babel.org index ea5749e65..ab6c0810b 100644 --- a/org-babel.org +++ b/org-babel.org @@ -203,6 +203,23 @@ would then be [[#sandbox][the sandbox]]. ** PROPOSED optional timestamp for output Add option to place an (inactive) timestamp at the #+resname, to record when that output was generated. + +*** source code block timestamps (optional addition) + If we did this would we then want to place a timestamp on the + source-code block, so that we would know if the results are + current or out of date? This would have the effect of caching the + results of calculations and then only re-running if the + source-code has changed. For the caching to work we would need to + check not only the timestamp on a source-code block, but also the + timestamps of any tables or source-code blocks referenced by the + original source-code block. + +**** maintaining source-code block timestamps + It may make sense to add a hook to `org-edit-special' which could + update the source-code blocks timestamp. If the user edits the + contents of a source-code block directly I can think of no + efficient way of maintaining the timestamp. + ** PROPOSED use example block for large amounts of stdout output? We're currently `examplizing' with : at the beginning of the line, but should larger amounts of output be in a From 61daf1e7625769c73a5ea64d8a2f32d82376a2dd Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 18 Jul 2009 13:14:27 -0600 Subject: [PATCH 2/2] promoted to TODO: use example block for large amounts of stdout output? --- org-babel.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org-babel.org b/org-babel.org index ab6c0810b..3201456d5 100644 --- a/org-babel.org +++ b/org-babel.org @@ -220,7 +220,7 @@ would then be [[#sandbox][the sandbox]]. contents of a source-code block directly I can think of no efficient way of maintaining the timestamp. -** PROPOSED use example block for large amounts of stdout output? +** TODO use example block for large amounts of stdout output? We're currently `examplizing' with : at the beginning of the line, but should larger amounts of output be in a \#+begin_example...\#+end_example block? What's the cutoff? > 1 @@ -228,6 +228,12 @@ would then be [[#sandbox][the sandbox]]. output. Sometimes one will want to see stdout just to check everything looks OK, and then fold it away. + Yea, that makes sense. (either that or allow folding of large + blocks escaped with =:=). + + Proposed cutoff of 10 lines, we can save this value in a user + customizable variable. + ** TODO make tangle files read-only? With a file-local variable setting, yea that makes sense. Maybe the header should reference the related org-mode file.