From ac6ca7baedb745907fa57f360201bee4c36a2e69 Mon Sep 17 00:00:00 2001 From: Kevin Rodgers Date: Sat, 2 Oct 2010 21:11:20 -0400 Subject: [PATCH] * subr.el (booleanp): Return t instead of a list (Bug#7086). --- lisp/ChangeLog | 4 ++++ 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 @@ +2010-10-03 Kevin Rodgers + + * subr.el (booleanp): Return t instead of a list (Bug#7086). + 2010-10-03 Chong Yidong * 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." (or (stringp object) (null object))) (defun booleanp (object) - "Return non-nil if OBJECT is one of the two canonical boolean values: t or nil." - (memq object '(nil t))) + "Return t if OBJECT is one of the two canonical boolean values: t or nil. +Otherwise, return nil." + (and (memq object '(nil t)) t)) (defun field-at-pos (pos) "Return the field at position POS, taking stickiness etc into account." -- 2.39.5