]> git.eshelyaron.com Git - emacs.git/commit
New functions plusp and minusp
authorStefan Kangas <stefankangas@gmail.com>
Mon, 17 Feb 2025 20:58:53 +0000 (21:58 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:56:48 +0000 (09:56 +0100)
commit8599cb5651de639e2a50f64de7ffb2d53a5175a6
tree9c07feb9dc2f67d1c26d5d0ec9f55d373671561e
parente3e94bfe137cb3762f26d0893031d8cee0cd9523
New functions plusp and minusp

* lisp/emacs-lisp/cl-lib.el (cl-plusp, cl-minusp): Move from here...
* lisp/subr.el (plusp, minusp): ...to here.  Make old names into
aliases, documented as deprecated.  Add type declarations.  Change from
defsubst to regular functions with compiler macros.
* lisp/obsolete/cl.el: Don't alias plusp and minusp.

* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-plusp)
(cl-lib-test-minusp): Move tests from here...
* test/lisp/subr-tests.el (subr-test-plusp, subr-test-minusp):
...to here.

* doc/lispref/numbers.texi (Predicates on Numbers): Document plusp
and minusp.
* doc/misc/cl.texi (Predicates on Numbers): Delete cl-plusp and
cl-minusp.
* lisp/emacs-lisp/shortdoc.el (number): Document plusp and minusp
instead of cl-plusp and cl-minusp.

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