瀏覽代碼

Merge branch 'origin-maint'

Eric Schulte 13 年之前
父節點
當前提交
43fb184634
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      lisp/ob.el

+ 8 - 1
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.")
@@ -1540,7 +1547,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"))