emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Example not quite right
@ 2013-01-04 14:43 George Jones
  2013-01-04 15:44 ` Thomas S. Dye
  2013-01-04 15:59 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: George Jones @ 2013-01-04 14:43 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

FYI,

From http://orgmode.org/worg/org-contrib/babel/intro.html

#+name: square(x)

#+begin_src python

return x*x

#+end_src

Now we use the source block:



#+call: square(x=6)

yields

Reference 'square' not found in this buffer .

It works fine if the parameter name is removed from the #name block:


#+name: square

#+begin_src python

return x*x

#+end_src

Now we use the source block:



#+call: square(x=6)

#+RESULTS: square(x=6)

: 36


---George Jones

[-- Attachment #2: Type: text/html, Size: 2421 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-04 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04 14:43 Example not quite right George Jones
2013-01-04 15:44 ` Thomas S. Dye
2013-01-04 15:59 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).