* 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
* Re: Example not quite right
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
1 sibling, 0 replies; 3+ messages in thread
From: Thomas S. Dye @ 2013-01-04 15:44 UTC (permalink / raw)
To: gmj; +Cc: emacs-orgmode
George Jones <eludom@gmail.com> writes:
> 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 .
>
Fixed, thanks.
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Example not quite right
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
1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2013-01-04 15:59 UTC (permalink / raw)
To: gmj; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 110 bytes --]
Hi George,
George Jones <eludom@gmail.com> writes:
> FYI,
Things work fine for me with the attached file.
[-- Attachment #2: square.org --]
[-- Type: application/vnd.lotus-organizer, Size: 148 bytes --]
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Bastien
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.