]> git.eshelyaron.com Git - emacs.git/commit
New functions oddp and evenp
authorStefan Kangas <stefankangas@gmail.com>
Sun, 16 Feb 2025 23:52:45 +0000 (00:52 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:50:09 +0000 (09:50 +0100)
commit046b4961867df9f1b737250f56a5de50b76d88e3
tree457e026976a23e35b71cf139e43a9827232df099
parent1c1e4e0158871698afa013c5e3e5e26fad4631e3
New functions oddp and evenp

* lisp/emacs-lisp/cl-lib.el (cl-oddp, cl-evenp): Move from here...
* lisp/subr.el (oddp, evenp): ...to here.  Make old names into
aliases, documented as deprecated.  Add type declarations.
* lisp/obsolete/cl.el: Don't alias oddp and evenp.

* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-oddp)
(cl-lib-test-evenp): Move tests from here...
* test/lisp/subr-tests.el (subr-test-oddp, subr-test-evenp): ...to here.
* lisp/emacs-lisp/shortdoc.el (number): Add oddp and evenp.
(map): Prefer oddp and evenp to cl-oddp and cl-evenp.

* doc/lispref/numbers.texi (Predicates on Numbers): Document above new
functions oddp and evenp.
* doc/misc/cl.texi (Predicates on Numbers): Delete cl-oddp and cl-evenp.
(Other Clauses): Prefer oddp to cl-oddp.

(cherry picked from commit 667d011410d1ab53fb90a497eb07f0b65c933821)
doc/lispref/numbers.texi
doc/misc/cl.texi
lisp/emacs-lisp/shortdoc.el
test/lisp/emacs-lisp/cl-lib-tests.el
test/lisp/subr-tests.el