We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e897c29 commit 29235c8Copy full SHA for 29235c8
tests/benchmark_and_compare.template.el
@@ -23,6 +23,11 @@
23
(and (listp x)
24
(-all (lambda (e) (and (consp e) (symbolp (car e)))) x)))
25
26
+(defun -plistp (x)
27
+ (and (listp x)
28
+ x
29
+ (keywordp (car x))))
30
+
31
(defun -sort-alist (x)
32
(sort x (lambda (a b) (string< (symbol-name (car a)) (symbol-name (car b))))))
33
@@ -60,8 +65,8 @@
60
65
(equal (length a) (length b))
61
66
(-check-equal-sorted-alist (-sort-alist a)
62
67
(-sort-alist b))))
63
- ((pred plistp)
64
- (and (plistp b)
68
+ ((pred -plistp) ;; plistp is not available before emacs29
69
+ (and (-plistp b)
70
71
(-check-equal-sorted-alist (-plist-to-sorted-alist a)
72
(-plist-to-sorted-alist b))))
0 commit comments