diff options
author | Richard Stallman <rms@gnu.org> | 2025-02-17 16:56:22 -0500 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 2025-02-17 16:56:22 -0500 |
commit | abd861ca2694898b347b94251710da38c687dd68 (patch) | |
tree | 1e8d0a2680b7ce953d10fb3c91bca40658694e95 /lisp/emacs-lisp/elint.el | |
parent | f3ef16f86ffbb0ab5b76fa11e85eda5b1eff4b4b (diff) | |
parent | 8a7c1a31ac0a61384661878e9f7f7e77ada34ade (diff) | |
download | emacs-abd861ca2694898b347b94251710da38c687dd68.tar.gz emacs-abd861ca2694898b347b94251710da38c687dd68.tar.bz2 emacs-abd861ca2694898b347b94251710da38c687dd68.zip |
merging with my changes in cond-star.el.
Diffstat (limited to 'lisp/emacs-lisp/elint.el')
-rw-r--r-- | lisp/emacs-lisp/elint.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index 0f5d15be838..5ae8880167d 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el @@ -798,7 +798,7 @@ CODE can be a lambda expression, a macro, or byte-compiled code." (defun elint-check-setq-form (form env) "Lint the setq FORM in ENV." - (or (= (mod (length form) 2) 1) + (or (oddp (length form)) ;; (setq foo) is valid and equivalent to (setq foo nil). (elint-warning "Missing value in setq: %s" form)) (let ((newenv env) @@ -833,7 +833,7 @@ CODE can be a lambda expression, a macro, or byte-compiled code." "Lint the defcustom FORM in ENV." (if (and (> (length form) 3) ;; even no. of keyword/value args ? - (zerop (logand (length form) 1))) + (evenp (length form))) (elint-env-add-global-var (elint-form (nth 2 form) env) (car (cdr form))) (elint-error "Malformed variable declaration: %s" form) |