From 77c7fc81cc8689b82020680fc2cf29fdbb08b07c Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 14 Jul 2009 18:43:45 -0700 Subject: [PATCH] flesh out org-babel-load-file task statement --- org-babel.org | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/org-babel.org b/org-babel.org index f5097dd6d..f6c2342e2 100644 --- a/org-babel.org +++ b/org-babel.org @@ -200,24 +200,32 @@ would then be [[#sandbox][the sandbox]]. * Tasks [27/44] -** TODO singe-function tangling and loading elisp from literate org-mode file [2/2] +** TODO singe-function tangling and loading elisp from literate org-mode file [2/3] This function should tangle the org-mode file for elisp, and then call `load-file' on the resulting tangled file. +#+srcname: test-loading-embedded-emacs-lisp +#+begin_src emacs-lisp + (org-babel-load-file "test-tangle.org") + (list test-tangle-loading test-tangle-advert) +#+end_src + *** DONE add optional language limiter to org-babel-tangle This should check to see if there is any need to re-export *** DONE ensure that org-babel-tangle returns the path to the tangled file(s) #+srcname: test-return-value-of-org-babel-tangle -#+begin_src emacs-lisp +#+begin_src emacs-lisp :results replace (mapcar #'file-name-nondirectory (org-babel-tangle-file "test-tangle.org" "emacs-lisp")) #+end_src #+resname: | "test-tangle.el" | +*** TODO only tangle the file if it's actually necessary +compare the ages of the files ** TODO support for working with =*Org Edit Src Example*= buffers [2/4] *** TODO optionally evaluate header references when we switch to =*Org Edit Src*= buffer