From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott May Subject: [Babel] Unexpected behavior evaluating function source blocks defined in a list Date: Tue, 21 Dec 2010 06:28:31 -0800 (PST) Message-ID: <199607.61944.qm@web65610.mail.ac4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=52297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV3Ce-0002sS-5p for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 09:28:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV3Cb-00033R-To for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 09:28:36 -0500 Received: from nm6-vm0.bullet.mail.ac4.yahoo.com ([98.139.52.70]:31675) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PV3Cb-00032Q-OA for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 09:28:33 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 |