From 6844094edb9ade69ed89fcc1e590b18018b719d4 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 16 Sep 2011 07:43:07 -0600 Subject: [PATCH] Don't delete variable values when checking for assignment. * lisp/ob.el (org-babel-get-src-block-info): Fixing bug, accidentally deleted variable values. --- lisp/ob.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index eec88f0e3..d20205f6b 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -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) ""))))