summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <davison@stats.ox.ac.uk>2010-10-20 21:45:04 +0100
committerEric Schulte <schulte.eric@gmail.com>2010-10-21 07:02:22 -0600
commitf2e547c657d3de87408a887a34ca38c3657f2b9f (patch)
treecdefe6786f43cf7518e91ef5361cd7d464e89224
parent65217b7fb4954258ed3cd3843056caca7f54dc85 (diff)
downloadorg-mode-f2e547c657d3de87408a887a34ca38c3657f2b9f.tar.gz
babel: Fix check for zero length sequences when constructing hash key
* ob.el (org-babel-sha1-hash): Fix check for zero length sequences
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index ec192da..a655642 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -620,7 +620,8 @@ the current subtree."
(lambda (arg)
(let ((v (cdr arg)))
(when (and v (not (and (sequencep v)
- (> (length v) 0))))
+ (not (consp v))
+ (= (length v) 0))))
(if (stringp v)
(mapconcat #'identity
(sort (split-string v)