0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-19 11:09:54 +00:00
org-mode/test-tangle.org
Eric Schulte 6b5747fdfa Revert "DONE take default values for header args from properties"
This is breaking many of our tests, so I'm reverting it until I can figure out a fix

This reverts commit 9936814ffc.
2009-07-22 19:02:12 -06:00

93 lines
1.3 KiB
Org Mode

#+OPTIONS: toc:2 ^:nil
#+TITLE: Testing Org-Babel Tangling
* Some file
Some text here
#+BEGIN_SRC sh
echo "line 1"
echo "line 2"
#+END_SRC
more text
#+srcname: ruby-no-session
#+begin_src ruby
def hello
puts "hello world"
end
#+end_src
#+srcname: first-ruby-block
#+begin_src ruby :session special
:block_the_first
#+end_src
** Some subsection
#+BEGIN_SRC sh
echo "line 3"
echo "line 4"
#+END_SRC
blah blah blah
#+BEGIN_EXAMPLE
text line 1
text line 2
text line 3
#+END_EXAMPLE
more stuff
#+srcname: i-have-a-name
#+begin_src sh
echo "I have a name"
#+end_src
foo foo bar baz
#+BEGIN_SRC sh
echo "line 5"
echo "line 6"
#+END_SRC
** Ruby blocks
#+srcname: another-ruby-block
#+begin_src ruby :session special
holder = 98
#+end_src
#+srcname: ruby-plus-2
#+begin_src ruby :session special
def plus_two(n)
n + 2
end
#+end_src
#+srcname: final-ruby
#+begin_src ruby :session special
plus_two(holder)
#+end_src
** Emacs Lisp initialization stuff
#+srcname: lets-set-some-variables()
#+begin_src emacs-lisp
(setq test-tangle-loading "org-babel tangles")
(setq test-tangle-advert "use org-babel-tangle for all your emacs initialization files!!")
#+end_src
#+srcname: i-shouldnt-be-tangled
#+begin_src emacs-lisp :tangle no
(setq test-tangle-i-should-not-exist "hopefully I'm not included")
#+end_src