From cf0cdd7785198874166a48a6a208647b5f732b79 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 31 Oct 2010 12:51:18 +0000 Subject: [PATCH] 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'. --- lisp/ob.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index 78d005a0d..38c03c1b6 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -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"