From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Predicate for true lists Date: Mon, 04 Jun 2018 10:08:10 -0400 Message-ID: References: <87fu3vdjjk.fsf@tcd.ie> <87bmcqhhsf.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528121223 25255 195.159.176.226 (4 Jun 2018 14:07:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 14:07:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 16:06:59 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPq8R-0006Ss-Eg for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 16:06:59 +0200 Original-Received: from localhost ([::1]:39979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPqAY-0002Aa-Df for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2018 10:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPq9s-0002AS-VD for emacs-devel@gnu.org; Mon, 04 Jun 2018 10:08:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPq9o-0000Ps-1a for emacs-devel@gnu.org; Mon, 04 Jun 2018 10:08:28 -0400 Original-Received: from [195.159.176.226] (port=37870 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPq9n-0000P1-Ly for emacs-devel@gnu.org; Mon, 04 Jun 2018 10:08:23 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fPq7e-0005d6-3D for emacs-devel@gnu.org; Mon, 04 Jun 2018 16:06:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:xOVV6XysNPNHH/V2AnatapBjYEo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225992 Archived-At: > +@defun list-true-p object > +This function returns @code{t} if OBJECT is a true list, @code{nil} > +otherwise. In addition to satistying @code{listp}, a true list is > +neither circular nor dotted. I think this function's true name is `list-proper-p` or `proper-list-p`. At least I've always heard it talked about as "a proper list vs a non-proper list". As for `cdr` vs CDR. The all-caps version is a metavariable referring to something which we happened to call CDR. E.g. Foo takes the form (CAR . CDR) where CDR is blabla. so I think your use of `cdr` was the right choice. Stefan