summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <eric.schulte@gmx.com>2012-01-11 13:54:20 -0700
committerEric Schulte <eric.schulte@gmx.com>2012-01-11 13:54:20 -0700
commit9ac673c5e2d02cd6e089a2ae6132adb2c0e30390 (patch)
tree34a6468f7c9f87799e46226e8ff2e03f1e3402fc
parent87a228cd6b03bc39d61032ed0d50f1a9de895532 (diff)
downloadorg-mode-9ac673c5e2d02cd6e089a2ae6132adb2c0e30390.tar.gz
default to all-caps #+RESULTS: for code-block generated content
* lisp/ob.el (org-babel-results-keyword): New user-configurable results keyword. (org-babel-where-is-src-block-result): Use new user-configurable results keyword.
-rw-r--r--lisp/ob.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index b252055..98328d5 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -113,6 +113,13 @@ remove code block execution from the C-c C-c keybinding."
:group 'org-babel
:type 'boolean)
+(defcustom org-babel-results-keyword "RESULTS"
+ "Keyword used to name results generated by code blocks.
+Should be either RESULTS or NAME however any capitalization may
+be used."
+ :group 'org-babel
+ :type 'string)
+
(defvar org-babel-src-name-regexp
"^[ \t]*#\\+name:[ \t]*"
"Regular expression used to match a source name line.")
@@ -1544,7 +1551,7 @@ following the source block."
(lambda (el) " ")
(org-number-sequence 1 indent) "")
"")
- "#+results"
+ "#+" org-babel-results-keyword
(when hash (concat "["hash"]"))
":"
(when name (concat " " name)) "\n"))