From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#7086: `booleanp' return value is multi-valued list Date: Wed, 22 Sep 2010 20:06:02 -0600 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285207870 800 80.91.229.12 (23 Sep 2010 02:11:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 02:11:10 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 23 04:11:08 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OybHA-0006tR-BN for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Sep 2010 04:11:08 +0200 Original-Received: from localhost ([127.0.0.1]:47460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OybH9-00072y-IW for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Sep 2010 22:11:07 -0400 Original-Received: from [140.186.70.92] (port=45005 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OybH3-000712-MX for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:11:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OybH2-0007p0-DX for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:11:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54710) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OybH2-0007ov-C5 for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:11:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OybAH-0006gb-V8; Wed, 22 Sep 2010 22:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Rodgers Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2010 02:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.128520742525695 (code B ref -1); Thu, 23 Sep 2010 02:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Sep 2010 02:03:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OybA1-0006gO-4E for submit@debbugs.gnu.org; Wed, 22 Sep 2010 22:03:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oyb9z-0006gJ-1h for submit@debbugs.gnu.org; Wed, 22 Sep 2010 22:03:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OybCU-0007Bk-B6 for submit@debbugs.gnu.org; Wed, 22 Sep 2010 22:06:19 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:34467) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OybCU-0007Bg-9D for submit@debbugs.gnu.org; Wed, 22 Sep 2010 22:06:18 -0400 Original-Received: from [140.186.70.92] (port=38127 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OybCT-0006IZ-Ao for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:06:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OybCR-0007B8-Mj for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:06:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39725) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OybCR-00077u-Gr for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 22:06:15 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OybCL-0005eY-D0 for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2010 04:06:09 +0200 Original-Received: from c-67-166-3-76.hsd1.co.comcast.net ([67.166.3.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 04:06:09 +0200 Original-Received: from kevin.d.rodgers by c-67-166-3-76.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 04:06:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-166-3-76.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 22 Sep 2010 22:04:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40365 Archived-At: On 9/22/10 4:35 PM, Juanma Barranquero wrote: > On Wed, Sep 22, 2010 at 23:58, MON KEY wrote: > >> "Return non-`nil' if OBJECT is one of the two canonical boolean >> values: `t' or `nil'." >> >> It should be documented both in the manual and the docstring of `booleanp' that >> its return value is a list. > > Why? It is a type predicate. If anything, it should be changed to > return t or nil, as "(elisp)2.6 Type Predicates" says: > > A type predicate function takes one argument; it returns `t' if the > argument belongs to the appropriate type, and `nil' otherwise. > > The fact that it returns nil or a list is an implementation detail. > >> Indeed, while I can appreciate why (booleanp nil) returns a two element list >> I'm unable to reason a rationale for why (booleanp t) doesn't? > > Why do you expect any kind of rationale, other than the simple fact > that it is implemented as > > (memq object '(nil t))) (and (memq object '(nil t)) t) would be better. -- Kevin Rodgers Denver, Colorado, USA