From: Scott May <bscottmay@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: [Babel] Unexpected behavior evaluating function source blocks defined in a list
Date: Tue, 21 Dec 2010 06:28:31 -0800 (PST) [thread overview]
Message-ID: <199607.61944.qm@web65610.mail.ac4.yahoo.com> (raw)
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 |
reply other threads:[~2010-12-21 14:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199607.61944.qm@web65610.mail.ac4.yahoo.com \
--to=bscottmay@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).