diff options
author | Lawrence Mitchell <wence@gmx.li> | 2011-06-02 11:04:05 +0100 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-06-03 07:04:02 -0600 |
commit | cfb05268f4cfa5867a74d865c262074e3e3ec0f2 (patch) | |
tree | 5c9cab9b15583fb9ee79ecc107419e50e943b4e4 | |
parent | 3f614328985ce3932ed48583b84972b91a0ddb22 (diff) | |
download | org-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.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |