emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [patch] org-sbe doc
Date: Tue, 30 Sep 2014 12:04:25 +0200	[thread overview]
Message-ID: <87r3ytctli.fsf@gmx.us> (raw)

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ob-table-Updated-documentation.patch --]
[-- Type: text/x-diff, Size: 1337 bytes --]

From 0f320a044cef4974be40b351da72729045a56ca6 Mon Sep 17 00:00:00 2001
From: rasmus <rasmus@pank.eu>
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


             reply	other threads:[~2014-09-30 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 10:04 Rasmus [this message]
2014-10-11 13:02 ` [patch] org-sbe doc Bastien

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=87r3ytctli.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).