lisp/ox.el: Enable removable inline src results

* lisp/ox.el: (org-export-as): Treat `results' as an `identity' macro
  with one argument after Babel executes.
This commit is contained in:
Charles Berry 2015-01-29 12:05:31 -08:00
parent f7a1e23d20
commit 638cde3ac9
1 changed files with 2 additions and 1 deletions

View File

@ -2876,7 +2876,8 @@ Return code as a string."
;; EMAIL is not a parsed keyword: store it as-is.
(cons "email" (or (plist-get info :email) ""))
(cons "title"
(org-element-interpret-data (plist-get info :title))))
(org-element-interpret-data (plist-get info :title)))
(cons "results" "$1"))
'finalize)
;; Parse buffer.
(setq tree (org-element-parse-buffer nil visible-only))