babel: define variables before their first use

* lisp/babel/ob.el (org-babel-interpreters): define this before it is
  first used

* lisp/babel/ob.el (org-babel-call-process-region-original): define
  this before it is first used
This commit is contained in:
Eric Schulte 2010-06-12 16:48:30 -07:00
parent 4c8f008f3f
commit 49e90002dc
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ can not be resolved.")
(concat org-babel-source-name-regexp (regexp-quote name) "[ \t\n]*" (concat org-babel-source-name-regexp (regexp-quote name) "[ \t\n]*"
(substring org-babel-src-block-regexp 1))) (substring org-babel-src-block-regexp 1)))
(defvar org-babel-interpreters nil)
(defvar org-babel-call-process-region-original nil)
(defun org-babel-add-interpreter (interpreter) (defun org-babel-add-interpreter (interpreter)
"Add INTERPRETER to `org-babel-interpreters' and update "Add INTERPRETER to `org-babel-interpreters' and update
`org-babel-src-block-regexp' appropriately." `org-babel-src-block-regexp' appropriately."