diff options
| author | Ihor Radchenko <yantar92@posteo.net> | 2022-11-22 10:06:24 +0800 |
|---|---|---|
| committer | Ihor Radchenko <yantar92@posteo.net> | 2022-11-27 08:32:51 +0800 |
| commit | eed4708b6638e2b3c46dfbece018ab8854400d6e (patch) | |
| tree | d1572aa004aa09b8bf88c936fa19d4c90f4eeb2b /etc/ORG-NEWS | |
| parent | 6db75d560206262023a2faad41b226ee73115284 (diff) | |
| download | org-mode-eed4708b6638e2b3c46dfbece018ab8854400d6e.tar.gz | |
org-babel: Add new :results discard header argument
* lisp/ob-core.el (org-babel-result-cond): Unconditionally return nil
and suppress all the processing for :results discard.
(org-babel-common-header-args-w-values):
(org-babel-sha1-hash): Add the new value to know :results value list.
* doc/org-manual.org (Handling):
* etc/ORG-NEWS (New =:results discard= header argument): Document the
new value.
Reported-by: Daniel Ortmann <daniel.ortmann@oracle.com>
Link: https://orgmode.org/list/87tu2tjary.fsf@localhost
Diffstat (limited to 'etc/ORG-NEWS')
| -rw-r--r-- | etc/ORG-NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 568bd15..c18e739 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -382,6 +382,14 @@ value of ~org-babel-clojure-backend~. For example: (range 2) #+end_src +*** New =:results discard= header argument + +Unlike =:results none=, the return value of code blocks called with +=:results discard= header argument is always ~nil~. Org does not +attempt to analyze the results and simply returns nil. This can be +useful when the code block is used for side effects only but generates +large outputs that may be slow to analyze for Org. + ** New options *** A new option for custom setting ~org-refile-use-outline-path~ to show document title in refile targets |
