aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el5
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 @@
12010-10-03 Kevin Rodgers <kevin.d.rodgers@gmail.com>
2
3 * subr.el (booleanp): Return t instead of a list (Bug#7086).
4
12010-10-03 Chong Yidong <cyd@stupidchicken.com> 52010-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))) 2424Otherwise, 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."