Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fix to kvcmp to handle nil

  • Loading branch information...
commit 929bbec5f8ced924fe3e2302f1b8df30caa4d610 1 parent 3de114b
@nicferrier authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 kv.el
View
4 kv.el
@@ -163,8 +163,8 @@ cons cells."
"Do a comparison of the two values using printable syntax.
Use this as the function to pass to `sort'."
- (string-lessp (format "%S" a)
- (format "%S" b)))
+ (string-lessp (if a (format "%S" a) "")
+ (if b (format "%S" b) "")))
(defun kvdotassoc-fn (expr table func)
"Use the dotted EXPR to access deeply nested data in TABLE.
Please sign in to comment.
Something went wrong with that request. Please try again.