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:
parent
b9922ba879
commit
6844094edb
|
@ -224,7 +224,8 @@ Returns a list
|
||||||
(lambda (ref) (cons :var ref))
|
(lambda (ref) (cons :var ref))
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (var) ;; check that each variable is initialized
|
(lambda (var) ;; check that each variable is initialized
|
||||||
(unless (string-match ".+=.+" var)
|
(if (string-match ".+=.+" var)
|
||||||
|
var
|
||||||
(error
|
(error
|
||||||
"variable \"%s\"%s must be assigned a default value"
|
"variable \"%s\"%s must be assigned a default value"
|
||||||
var (if name (format " in block \"%s\"" name) ""))))
|
var (if name (format " in block \"%s\"" name) ""))))
|
||||||
|
|
Loading…
Reference in New Issue