Don't delete variable values when checking for assignment.

* lisp/ob.el (org-babel-get-src-block-info): Fixing bug, accidentally
  deleted variable values.
This commit is contained in:
Eric Schulte 2011-09-16 07:43:07 -06:00
parent b9922ba879
commit 6844094edb
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ Returns a list
(lambda (ref) (cons :var ref))
(mapcar
(lambda (var) ;; check that each variable is initialized
(unless (string-match ".+=.+" var)
(if (string-match ".+=.+" var)
var
(error
"variable \"%s\"%s must be assigned a default value"
var (if name (format " in block \"%s\"" name) ""))))