1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

(elint-check-defcustom-form): Don't use `evenp' so we don't implicitly

require cl library at runtime.
This commit is contained in:
John Paul Wallington 2003-10-20 17:16:16 +00:00
parent 62d2014211
commit 748fb1aabd

View File

@ -540,7 +540,8 @@ CODE can be a lambda expression, a macro, or byte-compiled code."
(defun elint-check-defcustom-form (form env)
"Lint the defcustom FORM in ENV."
(if (and (> (length form) 3)
(evenp (length form))) ; even no. of keyword/value args
;; even no. of keyword/value args ?
(zerop (logand (length form) 1)))
(elint-env-add-global-var (elint-form (nth 2 form) env)
(car (cdr form)))
(elint-error "Malformed variable declaration: %s" form)