mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-23 07:18:53 +00:00
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.
This commit is contained in:
parent
87a228cd6b
commit
9ac673c5e2
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user