fix(lib): unknown type: consp on Emacs 29+

This was removed from cl-lib's known datatypes (in favor of "cons") in
Emacs 29.
This commit is contained in:
Henrik Lissner 2022-06-08 14:25:58 +02:00
parent bea3cc161c
commit c78a3dc1f5
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -100,7 +100,7 @@ Tries to be portable. Returns 1 if cannot be determined."
(wrong-type-argument
(user-error "NUMBER_OF_PROCESSORS contains an invalid value: %S"
cpus))))
(consp
(cons
(if (zerop (car cpus))
(string-to-number (cdr cpus))
(user-error "Failed to look up number of processors, because:\n\n%s"