0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-12 08:10:07 +00:00
org-mode/test-tangle.org
Dan Davison e11508b8b7 test-tangle.org: adding function call parentheses on to #+srcname.
These are currently needed, due to the regexp in org-babel-get-src-block-name.
Changing that needs to be done with care to make sure that expectations regarding match-string are met,
so I'm leaving it for now
2009-07-17 15:09:42 -04:00

1.2 KiB

Testing Org-Babel Tangling

Some file

Some text here

echo "line 1"
echo "line 2"

more text

  def hello
    puts "hello world"
  end
:block_the_first

Some subsection

echo "line 3"
echo "line 4"

blah blah blah

text line 1
text line 2
text line 3

more stuff

echo "I have a name"

foo foo bar baz

echo "line 5"
echo "line 6"

Ruby blocks

holder = 98
def plus_two(n)
  n + 2
end
plus_two(holder)

Emacs Lisp initialization stuff

  (setq test-tangle-loading "org-babel tangles")
  (setq test-tangle-advert "use org-babel-tangle for all your emacs initialization files!!")