Function: plistp

plistp is a byte-compiled function defined in subr.el.gz.

Signature

(plistp OBJECT)

Documentation

Non-nil if and only if OBJECT is a valid plist.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun plistp (object)
  "Non-nil if and only if OBJECT is a valid plist."
  (declare (pure t) (side-effect-free error-free))
  (let ((len (proper-list-p object)))
    (and len (zerop (% len 2)))))