浏览代码

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.
Charles Berry 10 年之前
父节点
当前提交
638cde3ac9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ox.el

+ 2 - 1
lisp/ox.el

@@ -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))