From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [patch] org-sbe doc Date: Tue, 30 Sep 2014 12:04:25 +0200 Message-ID: <87r3ytctli.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYuIl-0005J4-Qr for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 06:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYuIc-0008Ms-1L for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 06:04:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:42895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYuIb-0008MR-Qt for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 06:04:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYuIW-0000Ga-5j for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 12:04:44 +0200 Received: from 109.201.154.200 ([109.201.154.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 12:04:44 +0200 Received: from rasmus by 109.201.154.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 12:04:44 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi, Cf. Charles Berry's post to a similarly named post there's a bug in the documentation of org-sbe. This patch corrects it. Thanks, Rasmus -- Together we'll stand, divided we'll fall --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ob-table-Updated-documentation.patch >From 0f320a044cef4974be40b351da72729045a56ca6 Mon Sep 17 00:00:00 2001 From: rasmus Date: Tue, 30 Sep 2014 11:53:36 +0200 Subject: [PATCH] ob-table: Updated documentation. * ob-table.el (org-sbe): Updated documentation. --- lisp/ob-table.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/ob-table.el b/lisp/ob-table.el index 6658313..46be551 100644 --- a/lisp/ob-table.el +++ b/lisp/ob-table.el @@ -47,7 +47,10 @@ ;; | 7 | | ;; | 8 | | ;; | 9 | | -;; #+TBLFM: $2='(org-sbe 'fibbd (n $1)) +;; #+TBLFM: $2='(org-sbe "fibbd" (n $1)) + +;; NOTE: The quotes around the function name, 'fibbd' in this case, +;; are optional. ;;; Code: (require 'ob-core) @@ -69,7 +72,7 @@ string of its value. So this `org-sbe' construct - (org-sbe 'source-block (n $2) (m 3)) + (org-sbe \"source-block\" (n $2) (m 3)) is the equivalent of the following source code block: @@ -77,6 +80,9 @@ is the equivalent of the following source code block: results #+end_src +NOTE: The quotes around 'source-block', the function name, are +optional. + NOTE: By default, string variable names are interpreted as references to source-code blocks, to force interpretation of a cell's value as a string, prefix the identifier a \"$\" (e.g., -- 2.1.1 --=-=-=--