diff options
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index b05471f0c3e..69cff23cba8 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4006,6 +4006,12 @@ Otherwise, return nil." (setq object (indirect-function object))) (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) +(defun plistp (object) + "Non-nil if and only if OBJECT is a valid plist." + (and (listp object) + (proper-list-p object) + (zerop (mod (length object) 2)))) + (defun macrop (object) "Non-nil if and only if OBJECT is a macro." (let ((def (indirect-function object))) |