diff options
| author | Kevin Rodgers | 2010-10-02 21:11:20 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-10-02 21:11:20 -0400 |
| commit | ac6ca7baedb745907fa57f360201bee4c36a2e69 (patch) | |
| tree | cf0a1e0be16281d896a76365f5a173f1bc2f93f3 | |
| parent | 6926550f39269b4fd2717f2e5eba8b51ac044fea (diff) | |
| download | emacs-ac6ca7baedb745907fa57f360201bee4c36a2e69.tar.gz emacs-ac6ca7baedb745907fa57f360201bee4c36a2e69.zip | |
* subr.el (booleanp): Return t instead of a list (Bug#7086).
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c25e49a8c8d..d2a75cdc227 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-10-03 Kevin Rodgers <kevin.d.rodgers@gmail.com> | ||
| 2 | |||
| 3 | * subr.el (booleanp): Return t instead of a list (Bug#7086). | ||
| 4 | |||
| 1 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> | 5 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * server.el (server-process-filter, server-return-error): Give | 7 | * server.el (server-process-filter, server-return-error): Give |
diff --git a/lisp/subr.el b/lisp/subr.el index 49a10bed9a8..82e1988156a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2420,8 +2420,9 @@ Otherwise, return nil." | |||
| 2420 | (or (stringp object) (null object))) | 2420 | (or (stringp object) (null object))) |
| 2421 | 2421 | ||
| 2422 | (defun booleanp (object) | 2422 | (defun booleanp (object) |
| 2423 | "Return non-nil if OBJECT is one of the two canonical boolean values: t or nil." | 2423 | "Return t if OBJECT is one of the two canonical boolean values: t or nil. |
| 2424 | (memq object '(nil t))) | 2424 | Otherwise, return nil." |
| 2425 | (and (memq object '(nil t)) t)) | ||
| 2425 | 2426 | ||
| 2426 | (defun field-at-pos (pos) | 2427 | (defun field-at-pos (pos) |
| 2427 | "Return the field at position POS, taking stickiness etc into account." | 2428 | "Return the field at position POS, taking stickiness etc into account." |