|
@@ -562,7 +562,11 @@ Optionally supply a value for PARAMS which will be merged with
|
|
|
the header arguments specified at the front of the source code
|
|
|
block."
|
|
|
(interactive)
|
|
|
- (let* ((info (if info
|
|
|
+ (let* ((org-babel-current-src-block-location
|
|
|
+ (or org-babel-current-src-block-location
|
|
|
+ (nth 6 info)
|
|
|
+ (org-babel-where-is-src-block-head)))
|
|
|
+ (info (if info
|
|
|
(copy-tree info)
|
|
|
(org-babel-get-src-block-info)))
|
|
|
(merged-params (org-babel-merge-params (nth 2 info) params)))
|
|
@@ -571,8 +575,6 @@ block."
|
|
|
(let* ((params (if params
|
|
|
(org-babel-process-params merged-params)
|
|
|
(nth 2 info)))
|
|
|
- (org-babel-current-src-block-location
|
|
|
- (or org-babel-current-src-block-location (nth 6 info)))
|
|
|
(cachep (and (not arg) (cdr (assoc :cache params))
|
|
|
(string= "yes" (cdr (assoc :cache params)))))
|
|
|
(new-hash (when cachep (org-babel-sha1-hash info)))
|