Browse Source

ob-ref: now expanding variables when resolving references

* lisp/ob-ref.el (org-babel-ref-resolve-reference): now expanding
  variables when resolving references
Eric Schulte 14 years ago
parent
commit
9587cdc0d0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob-ref.el

+ 2 - 1
lisp/ob-ref.el

@@ -149,7 +149,8 @@ return nil."
 	    (beginning-of-line)
 	    (if (or (= (point) (point-min)) (= (point) (point-max)))
 		(error "reference not found"))))
-	(setq params (org-babel-merge-params params args '((:results . "silent"))))
+	(setq params (org-babel-merge-params
+		      params (org-babel-expand-variables args) '((:results . "silent"))))
 	(setq result
 	      (case type
 		('results-line (org-babel-read-result))