Browse Source

don't change code block body during sha1 hashing

* lisp/ob-core.el (org-babel-sha1-hash): Don't change code block body
  during sha1 hashing.
Eric Schulte 6 years ago
parent
commit
031d2565f7
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lisp/ob-core.el

+ 2 - 3
lisp/ob-core.el

@@ -1223,9 +1223,8 @@ the current subtree."
 	   ;; expanded body
 	   (lang (nth 0 info))
 	   (params (nth 2 info))
-	   (body (setf (nth 1 info)
-		       (if (org-babel-noweb-p params :eval)
-			   (org-babel-expand-noweb-references info) (nth 1 info))))
+	   (body (if (org-babel-noweb-p params :eval)
+			   (org-babel-expand-noweb-references info) (nth 1 info)))
 	   (expand-cmd (intern (concat "org-babel-expand-body:" lang)))
 	   (assignments-cmd (intern (concat "org-babel-variable-assignments:"
 					    lang)))