babel: Fix data structure corruption when sorting parameters

* lisp/ob.el (org-babel-sha1-hash): Avoid corrupting `info' data
structure by side-effects of `sort'.
This commit is contained in:
Dan Davison 2010-10-31 12:51:18 +00:00
parent 0778fb8748
commit cf0cdd7785
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ the current subtree."
(let ((print-level nil)
(info (or info (org-babel-get-src-block-info))))
(setf (nth 2 info)
(sort (nth 2 info)
(sort (copy-tree (nth 2 info))
(lambda (a b) (string< (car a) (car b)))))
(let ((hash (sha1
(format "%s-%s"