# HG changeset patch # User Chong Yidong # Date 1286068280 14400 # Node ID deee083d1b016b017d10e0bc366a783352326b9c # Parent f07cd17d0a5ab673f96f67b722edfc3cdff41147 * subr.el (booleanp): Return t instead of a list (Bug#7086). diff -r f07cd17d0a5a -r deee083d1b01 lisp/ChangeLog --- a/lisp/ChangeLog Sat Oct 02 20:59:02 2010 -0400 +++ b/lisp/ChangeLog Sat Oct 02 21:11:20 2010 -0400 @@ -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 -r f07cd17d0a5a -r deee083d1b01 lisp/subr.el --- a/lisp/subr.el Sat Oct 02 20:59:02 2010 -0400 +++ b/lisp/subr.el Sat Oct 02 21:11:20 2010 -0400 @@ -2420,8 +2420,9 @@ (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."