浏览代码

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 11 年之前
父节点
当前提交
031d2565f7
共有 1 个文件被更改,包括 2 次插入3 次删除
  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)))