diff options
| author | Glenn Morris | 2014-05-27 23:51:36 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-05-27 23:51:36 -0700 |
| commit | 6c2038223bffd69bf643a923968fa6851a302fd8 (patch) | |
| tree | 266e858d76bc0a672b640809d17a5e070631dddc | |
| parent | 1af6db7de0248f64967ec47c6cde8ea371741dfc (diff) | |
| download | emacs-6c2038223bffd69bf643a923968fa6851a302fd8.tar.gz emacs-6c2038223bffd69bf643a923968fa6851a302fd8.zip | |
* lisp/subr.el (zerop): Move later so bootstrap works.
| -rw-r--r-- | lisp/subr.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 8767511f651..73dd0fe71df 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -335,12 +335,6 @@ configuration." | |||
| 335 | (and (consp object) | 335 | (and (consp object) |
| 336 | (eq (car object) 'frame-configuration))) | 336 | (eq (car object) 'frame-configuration))) |
| 337 | 337 | ||
| 338 | (defun zerop (number) | ||
| 339 | "Return t if NUMBER is zero." | ||
| 340 | ;; Used to be in C, but it's pointless since (= 0 n) is faster anyway because | ||
| 341 | ;; = has a byte-code. | ||
| 342 | (declare (compiler-macro (lambda (_) `(= 0 ,number)))) | ||
| 343 | (= 0 number)) | ||
| 344 | 338 | ||
| 345 | ;;;; List functions. | 339 | ;;;; List functions. |
| 346 | 340 | ||
| @@ -389,6 +383,13 @@ If N is omitted or nil, remove the last element." | |||
| 389 | (if (> n 0) (setcdr (nthcdr (- (1- m) n) list) nil)) | 383 | (if (> n 0) (setcdr (nthcdr (- (1- m) n) list) nil)) |
| 390 | list)))) | 384 | list)))) |
| 391 | 385 | ||
| 386 | (defun zerop (number) | ||
| 387 | "Return t if NUMBER is zero." | ||
| 388 | ;; Used to be in C, but it's pointless since (= 0 n) is faster anyway because | ||
| 389 | ;; = has a byte-code. | ||
| 390 | (declare (compiler-macro (lambda (_) `(= 0 ,number)))) | ||
| 391 | (= 0 number)) | ||
| 392 | |||
| 392 | (defun delete-dups (list) | 393 | (defun delete-dups (list) |
| 393 | "Destructively remove `equal' duplicates from LIST. | 394 | "Destructively remove `equal' duplicates from LIST. |
| 394 | Store the result in LIST and return it. LIST must be a proper list. | 395 | Store the result in LIST and return it. LIST must be a proper list. |