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:
parent
62d2014211
commit
748fb1aabd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user