Subject: Re: bug#47427: 26.3; 1. Please define a built-in predicate `plistp', 2. wrong type wrong-type-argument error

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 27 Jun 2022 12:37:11 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> Adding a `plistp' predicate
> would perhaps make sense, but it would just be
>
> (and (listp list)
>      (zerop (mod (length list) 2)))
>
> and then we have the philosophical issue of "is nil a plist"?  Does
> anybody have any opinions?

I decided that nil satisfies plistp, and I've now pushed a variant of
this to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no