mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-10 09:43:26 -08: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue