summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-lib.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-02-19 21:07:07 -0500
committerGlenn Morris <rgm@gnu.org>2013-02-19 21:07:07 -0500
commit1dfcc79e83d3db031b45e9f6b9314dc1f0697b1d (patch)
treea2b4c595e8c665d19759bcc0f5a0a8dfa0439f7f /lisp/emacs-lisp/cl-lib.el
parent81ed22e4cad625e297314bc609d146e7e62695db (diff)
downloademacs-1dfcc79e83d3db031b45e9f6b9314dc1f0697b1d.tar.gz
Make cl-floatp-safe just an alias for floatp
* lisp/emacs-lisp/cl-lib.el (cl-floatp-safe): Make it an alias for floatp. * lisp/emacs-lisp/cl-macs.el (cl--make-type-test) (cl--compiler-macro-assoc): Use floatp rather than cl-floatp-safe. * doc/misc/cl.texi: Remove commented out sections about cl-floatp-safe.
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
-rw-r--r--lisp/emacs-lisp/cl-lib.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 2de8260c941..f3bf70b0190 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -271,11 +271,7 @@ so that they are registered at compile-time as well as run-time."
;;; Numbers.
-(defun cl-floatp-safe (object)
- "Return t if OBJECT is a floating point number.
-On Emacs versions that lack floating-point support, this function
-always returns nil."
- (and (numberp object) (not (integerp object))))
+(define-obsolete-function-alias 'cl-floatp-safe 'floatp "24.4")
(defsubst cl-plusp (number)
"Return t if NUMBER is positive."