|
|
@@ -207,39 +207,7 @@ would then be [[#sandbox][the sandbox]].
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
-* Tasks [39/61]
|
|
|
-** STARTED new reference syntax *inside* source code blocks
|
|
|
-This is from an email discussion on the org-mode mailing list with
|
|
|
-Sébastien. The goal here is to mimic the source-block reference style
|
|
|
-of Noweb. Upon export and/or tangle these references could be
|
|
|
-replaced with the actual body of the referenced source-code block.
|
|
|
-
|
|
|
-See the following for an example.
|
|
|
-
|
|
|
-#+srcname: ems-ruby-print-header
|
|
|
-#+begin_src ruby
|
|
|
-puts "---------------------------header---------------------------"
|
|
|
-#+end_src
|
|
|
-
|
|
|
-#+srcname: emacs-ruby-print-footer
|
|
|
-#+begin_src ruby
|
|
|
-puts "---------------------------footer---------------------------"
|
|
|
-#+end_src
|
|
|
-
|
|
|
-#+srcname: ems-ruby-print-message
|
|
|
-#+begin_src ruby :file ruby-noweb.rb
|
|
|
- # <<ems-ruby-print-header>>
|
|
|
- puts " Ruby "
|
|
|
- # <<ems-ruby-print-footer>>
|
|
|
-#+end_src
|
|
|
-
|
|
|
-Upon export the previous source-code block would result in a file
|
|
|
-being generated at =ruby-noweb.rb= with the following contents
|
|
|
-
|
|
|
-: puts "---------------------------header---------------------------"
|
|
|
-: puts " Ruby "
|
|
|
-: puts "---------------------------footer---------------------------"
|
|
|
-
|
|
|
+* Tasks [40/61]
|
|
|
** PROPOSED raise elisp error when source-blocks return errors
|
|
|
Not sure how/if this would work, but it may be desirable.
|
|
|
|
|
|
@@ -1172,6 +1140,42 @@ to the command if BUFF is not given.)
|
|
|
2) The function is called inside of a =write.table= function call
|
|
|
writing the results to a table
|
|
|
3) The table is read using =org-table-import=
|
|
|
+** DONE new reference syntax *inside* source code blocks
|
|
|
+This is from an email discussion on the org-mode mailing list with
|
|
|
+Sébastien. The goal here is to mimic the source-block reference style
|
|
|
+of Noweb. Upon export and/or tangle these references could be
|
|
|
+replaced with the actual body of the referenced source-code block.
|
|
|
+
|
|
|
+See the following for an example.
|
|
|
+
|
|
|
+#+srcname: ems-ruby-print-header
|
|
|
+#+begin_src ruby
|
|
|
+puts "---------------------------header---------------------------"
|
|
|
+#+end_src
|
|
|
+
|
|
|
+#+srcname: emacs-ruby-print-footer
|
|
|
+#+begin_src ruby
|
|
|
+puts "---------------------------footer---------------------------"
|
|
|
+#+end_src
|
|
|
+
|
|
|
+#+srcname: ems-ruby-print-message
|
|
|
+#+begin_src ruby :file ruby-noweb.rb
|
|
|
+ # <<ems-ruby-print-header>>
|
|
|
+ puts " Ruby "
|
|
|
+ # <<ems-ruby-print-footer>>
|
|
|
+#+end_src
|
|
|
+
|
|
|
+Upon export the previous source-code block would result in a file
|
|
|
+being generated at =ruby-noweb.rb= with the following contents
|
|
|
+
|
|
|
+: puts "---------------------------header---------------------------"
|
|
|
+: puts " Ruby "
|
|
|
+: puts "---------------------------footer---------------------------"
|
|
|
+
|
|
|
+the body of a source-code block with all =<<src-name>>= references
|
|
|
+expanded can now be returned by `org-babel-expand-noweb-references'.
|
|
|
+This function is now called by default on all source-code blocks on
|
|
|
+export.
|
|
|
|
|
|
** DONE re-work tangling system
|
|
|
Sometimes when tangling a file (e.g. when extracting elisp from a
|