summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence Mitchell <wence@gmx.li>2011-06-02 11:04:05 +0100
committerEric Schulte <schulte.eric@gmail.com>2011-06-03 07:04:02 -0600
commitcfb05268f4cfa5867a74d865c262074e3e3ec0f2 (patch)
tree5c9cab9b15583fb9ee79ecc107419e50e943b4e4
parent3f614328985ce3932ed48583b84972b91a0ddb22 (diff)
downloadorg-mode-cfb05268f4cfa5867a74d865c262074e3e3ec0f2.tar.gz
lisp/ob.el: Don't modify babel info when hashing it
* lisp/ob.el (org-babel-sha1-hash): Don't modify info argument by side-effect when sorting result-params list. copy-sequence only does shallow copies, so if we're going to modify a sub-list, we need to make sure we copy it first.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index e1f4372..36649f0 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -767,7 +767,7 @@ the current subtree."
(cond
((and (listp v) ; lists are sorted
(member (car arg) '(:result-params)))
- (sort v #'string<))
+ (sort (copy-sequence v) #'string<))
((and (stringp v) ; strings are sorted
(member (car arg) '(:results :exports)))
(mapconcat #'identity (sort (split-string v)