diff options
| author | Juanma Barranquero | 2005-05-17 00:26:26 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-05-17 00:26:26 +0000 |
| commit | f4db41fcbbb4d7ce03dcadfd98fa919c9668e31d (patch) | |
| tree | e5424ce05ee6f49c2f6541045ebac93c890c1585 | |
| parent | 430c1c663e9c4fadda43836817477b93b1a36a66 (diff) | |
| download | emacs-f4db41fcbbb4d7ce03dcadfd98fa919c9668e31d.tar.gz emacs-f4db41fcbbb4d7ce03dcadfd98fa919c9668e31d.zip | |
(eql, floatp-safe, plusp, minusp, oddp, evenp, list*): Doc fixes.
| -rw-r--r-- | lisp/emacs-lisp/cl.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 2f6c799f528..11835629bd7 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el | |||
| @@ -115,7 +115,7 @@ a future Emacs interpreter will be able to use it.") | |||
| 115 | ;;; Predicates. | 115 | ;;; Predicates. |
| 116 | 116 | ||
| 117 | (defun eql (a b) ; See compiler macro in cl-macs.el | 117 | (defun eql (a b) ; See compiler macro in cl-macs.el |
| 118 | "T if the two args are the same Lisp object. | 118 | "Return t if the two args are the same Lisp object. |
| 119 | Floating-point numbers of equal value are `eql', but they may not be `eq'." | 119 | Floating-point numbers of equal value are `eql', but they may not be `eq'." |
| 120 | (if (numberp a) | 120 | (if (numberp a) |
| 121 | (equal a b) | 121 | (equal a b) |
| @@ -301,25 +301,25 @@ definitions to shadow the loaded ones for use in file byte-compilation." | |||
| 301 | ;;; Numbers. | 301 | ;;; Numbers. |
| 302 | 302 | ||
| 303 | (defun floatp-safe (x) | 303 | (defun floatp-safe (x) |
| 304 | "T if OBJECT is a floating point number. | 304 | "Return t if OBJECT is a floating point number. |
| 305 | On Emacs versions that lack floating-point support, this function | 305 | On Emacs versions that lack floating-point support, this function |
| 306 | always returns nil." | 306 | always returns nil." |
| 307 | (and (numberp x) (not (integerp x)))) | 307 | (and (numberp x) (not (integerp x)))) |
| 308 | 308 | ||
| 309 | (defun plusp (x) | 309 | (defun plusp (x) |
| 310 | "T if NUMBER is positive." | 310 | "Return t if NUMBER is positive." |
| 311 | (> x 0)) | 311 | (> x 0)) |
| 312 | 312 | ||
| 313 | (defun minusp (x) | 313 | (defun minusp (x) |
| 314 | "T if NUMBER is negative." | 314 | "Return t if NUMBER is negative." |
| 315 | (< x 0)) | 315 | (< x 0)) |
| 316 | 316 | ||
| 317 | (defun oddp (x) | 317 | (defun oddp (x) |
| 318 | "T if INTEGER is odd." | 318 | "Return t if INTEGER is odd." |
| 319 | (eq (logand x 1) 1)) | 319 | (eq (logand x 1) 1)) |
| 320 | 320 | ||
| 321 | (defun evenp (x) | 321 | (defun evenp (x) |
| 322 | "T if INTEGER is even." | 322 | "Return t if INTEGER is even." |
| 323 | (eq (logand x 1) 0)) | 323 | (eq (logand x 1) 0)) |
| 324 | 324 | ||
| 325 | (defvar *random-state* (vector 'cl-random-state-tag -1 30 (cl-random-time))) | 325 | (defvar *random-state* (vector 'cl-random-state-tag -1 30 (cl-random-time))) |
| @@ -503,7 +503,7 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp | |||
| 503 | ;; x)) | 503 | ;; x)) |
| 504 | 504 | ||
| 505 | (defun list* (arg &rest rest) ; See compiler macro in cl-macs.el | 505 | (defun list* (arg &rest rest) ; See compiler macro in cl-macs.el |
| 506 | "Return a new list with specified args as elements, cons'd to last arg. | 506 | "Return a new list with specified args as elements, consed to last arg. |
| 507 | Thus, `(list* A B C D)' is equivalent to `(nconc (list A B C) D)', or to | 507 | Thus, `(list* A B C D)' is equivalent to `(nconc (list A B C) D)', or to |
| 508 | `(cons A (cons B (cons C D)))'." | 508 | `(cons A (cons B (cons C D)))'." |
| 509 | (cond ((not rest) arg) | 509 | (cond ((not rest) arg) |