all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Babel] Unexpected behavior evaluating function source blocks defined in a list
@ 2010-12-21 14:28 Scott May
  0 siblings, 0 replies; only message in thread
From: Scott May @ 2010-12-21 14:28 UTC (permalink / raw
  To: emacs-orgmode

I noticed that when I evaluate a function whose definition is embedded in a 
list, the function does not evaluate if it is embedded in a list with no blank 
line preceding /and/ the function is indented. The function can be evaluated as 
expected with either a blank line preceding the definition or with no 
indentation of the source block. 

* Org snippet:

+ This works as I expect with a blank line preceding the source block:

  #+source: square(x)
  #+begin_src emacs-lisp
    (* x x)
  #+end_src

  #+call: square(x=3)

  #+results: square(x=3)
  : 9

+ Or if the source block is not indented:
#+source: cube(x)
#+begin_src emacs-lisp
  (* x x x)
#+end_src

#+call: cube(x=3)

#+results: cube(x=3)
: 27

+ But if I don't have a blank line, and the source block is indented,
  the bullet text gets incorporated into a table along with the
  source block:
  #+source: quartic(x)
  #+begin_src emacs-lisp
    (* x x x x)
  #+end_src

  #+call: quartic(x=3)

  #+results: quartic(x=3)
  | But if I don't have a blank line, and the source block is indented,\n  the 
bullet text gets incorporated into a table along with the\n  source block:\n 
 #+source: quartic(x)\n  #+begin_src emacs-lisp\n    (* x x x x)\n  #+end_src |



      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-21 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 14:28 [Babel] Unexpected behavior evaluating function source blocks defined in a list Scott May

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.