From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Domenech Goulart Newsgroups: gmane.emacs.devel Subject: Re: Documentation for car and cdr Date: Wed, 25 Jan 2006 08:37:51 +0000 Message-ID: <87y814n1nk.fsf@gmail.com> References: <873bjdmupx.fsf@gmail.com> <85acdlnrqf.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138184903 7514 80.91.229.2 (25 Jan 2006 10:28:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 10:28:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 25 11:28:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1hso-0005NI-Ur for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2006 11:28:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1huK-0004Cy-9m for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2006 05:29:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1hl5-0005tt-4x for emacs-devel@gnu.org; Wed, 25 Jan 2006 05:20:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1hko-0005nM-9s for emacs-devel@gnu.org; Wed, 25 Jan 2006 05:20:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1hkk-0005kD-8d for emacs-devel@gnu.org; Wed, 25 Jan 2006 05:19:50 -0500 Original-Received: from [66.249.82.205] (helo=xproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F1hi7-0000r1-83 for emacs-devel@gnu.org; Wed, 25 Jan 2006 05:17:07 -0500 Original-Received: by xproxy.gmail.com with SMTP id t11so42347wxc for ; Wed, 25 Jan 2006 02:16:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=VjhkAAe+DafSwJdoIenHwJx+Gyncqv0H2go43H7Mip0h/p2KLSKo+pfr5gG3Ve3qGFiQEya2CXuJCQPSRNLCYarkvCAS39JhogS7402ZUNdlwKNVFZRkzaFt5r+gj6Etple4+7lLz66m28ACVJfxhys7jArQBFWd6k9oejH5XRI= Original-Received: by 10.70.126.14 with SMTP id y14mr691421wxc; Wed, 25 Jan 2006 02:16:59 -0800 (PST) Original-Received: from nachos.gmail.com ( [200.175.81.150]) by mx.gmail.com with ESMTP id h19sm679705wxd.2006.01.25.02.16.57; Wed, 25 Jan 2006 02:16:58 -0800 (PST) Original-To: David Kastrup In-Reply-To: <85acdlnrqf.fsf@lola.goethe.zz> (David Kastrup's message of "Wed, 25 Jan 2006 00:14:32 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49523 Archived-At: On Wed, 25 Jan 2006 00:14:32 +0100 David Kastrup wrote: > Mario Domenech Goulart writes: > >> Wouldn't it be better to write something like "Return the first >> element of list" and "Return a list containing all but the first >> element of list" for car and cdr, respectively? > > No. cons cells don't need to point to an atom in their car, or to a > cons cell or nil in their cdr. This is fundamental Lisp terminology. Actually I didn't make any assumption about what `element' can be. But admittedly, the text about cdr is faulty, since (listp '(a . b)) is t, for example. Thanks for the comments. Best wishes. Mario