Ver código fonte

ob.el: Deprecate ":results wrap" in favor of ":results drawer"

* ob.el (org-babel-common-header-args-w-values)
(org-babel-insert-result): Deprecate ":results wrap" in favor
of ":results drawer".
Bastien Guerry 12 anos atrás
pai
commit
e4a01d0dde
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      lisp/ob.el

+ 5 - 3
lisp/ob.el

@@ -420,7 +420,7 @@ then run `org-babel-pop-to-session'."
     (noweb-sep  . :any)
     (padline	. ((yes no)))
     (results	. ((file list vector table scalar verbatim)
-		   (raw org html latex code pp wrap)
+		   (raw org html latex code pp drawer)
 		   (replace silent append prepend)
 		   (output value)))
     (rownames	. ((no yes)))
@@ -1866,7 +1866,7 @@ raw ----- results are added directly to the Org-mode file.  This
           is a good option if you code block will output org-mode
           formatted text.
 
-wrap ---- results are added directly to the Org-mode file as with
+drawer -- results are added directly to the Org-mode file as with
           \"raw\", but are wrapped in a RESULTS drawer, allowing
           them to later be replaced or removed automatically.
 
@@ -1994,7 +1994,9 @@ code ---- the results are extracted in the syntax of the source
 	    (funcall wrap "#+BEGIN_ORG" "#+END_ORG"))
 	   ((member "raw" result-params)
 	    (goto-char beg) (if (org-at-table-p) (org-cycle)))
-	   ((member "wrap" result-params)
+	   ((or (member "drawer" result-params)
+		;; Stay backward compatible with <7.9.2
+		(member "wrap" result-params))
 	    (funcall wrap ":RESULTS:" ":END:"))
 	   ((and (not (funcall proper-list-p result))
 		 (not (member "file" result-params)))