From: Kevin Rodgers Date: Sun, 3 Oct 2010 01:11:20 +0000 (-0400) Subject: * subr.el (booleanp): Return t instead of a list (Bug#7086). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~236 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ac6ca7baedb745907fa57f360201bee4c36a2e69;p=emacs.git * subr.el (booleanp): Return t instead of a list (Bug#7086). --- 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."