From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Demetrios Obenour Newsgroups: gmane.emacs.bugs Subject: bug#16963: A patch to create a list-with-tail primitive. Date: Thu, 27 Mar 2014 20:43:47 -0400 Message-ID: <1395967427.1853.1.camel@localhost.localdomain> References: <1394200708.1710.4.camel@localhost.localdomain> <5330EDB0.1070406@dancol.org> <1395963445.1956.2.camel@localhost.localdomain> <5334B66A.1040908@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395967453 11720 80.91.229.3 (28 Mar 2014 00:44:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 00:44:13 +0000 (UTC) Cc: 16963@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 01:44:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTKuC-0000aq-EK for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 01:44:20 +0100 Original-Received: from localhost ([::1]:56634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTKuC-0003Wz-3w for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 20:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTKu2-0003Wg-G4 for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 20:44:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTKtv-0001kw-6j for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 20:44:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTKtv-0001ks-1c for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 20:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTKtu-0006D9-Ge for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 20:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Demetrios Obenour Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Mar 2014 00:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16963-submit@debbugs.gnu.org id=B16963.139596743423854 (code B ref 16963); Fri, 28 Mar 2014 00:44:02 +0000 Original-Received: (at 16963) by debbugs.gnu.org; 28 Mar 2014 00:43:54 +0000 Original-Received: from localhost ([127.0.0.1]:53388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTKtl-0006Ce-Qx for submit@debbugs.gnu.org; Thu, 27 Mar 2014 20:43:54 -0400 Original-Received: from mail-yk0-f176.google.com ([209.85.160.176]:33218) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTKth-0006CQ-TA for 16963@debbugs.gnu.org; Thu, 27 Mar 2014 20:43:50 -0400 Original-Received: by mail-yk0-f176.google.com with SMTP id 19so3071415ykq.7 for <16963@debbugs.gnu.org>; Thu, 27 Mar 2014 17:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=jotlQkCz0X57GiRmV8K8Njj5sEtCSiQP19Y+EnLd9Kw=; b=vy8346Q/nnLCMDOzeJNx893P0C99zYwgeI1wyKUcD2QmwhMUdn3pSjT04Hs+QA2uyH GvbfO3aQAfPHR4bXf6O1zZ0Mgc153Xwtpe9BAa9DpMVP2mh/qe+yNORbWhpH0f6veIMR BeXjO2SrIB9LUGMO6tan5lavpDV9YgfnhalpiUcQf5b8xiog7j+gjOhSBOpcxXtHpgFB sRY4gwPSoTMWVxX+leinuXkVIpeBX6aE2iPpdsqzrbfEPux/qUhj/O1cpYc9vk82Pz0m PsdGnDBaojaq4cODC0a3Ws9Q8XY77hSFxFt6wD1plahMsdeqnL6J5FuFIfR4LlS/tW+m yJew== X-Received: by 10.236.116.131 with SMTP id g3mr49718yhh.110.1395967429221; Thu, 27 Mar 2014 17:43:49 -0700 (PDT) Original-Received: from [192.168.200.131] (c-71-236-63-161.hsd1.tn.comcast.net. [71.236.63.161]) by mx.google.com with ESMTPSA id k23sm6129413yhj.45.2014.03.27.17.43.48 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 17:43:48 -0700 (PDT) In-Reply-To: <5334B66A.1040908@dancol.org> X-Mailer: Evolution 3.10.4 (3.10.4-2.fc20) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87472 Archived-At: On Thu, 2014-03-27 at 16:38 -0700, Daniel Colascione wrote: > On 03/27/2014 04:37 PM, Demetrios Obenour wrote: > > On Mon, 2014-03-24 at 19:45 -0700, Daniel Colascione wrote: > >> On 03/24/2014 07:10 PM, Stefan wrote: > >>>> Since a comment in backquote.el said that backquote-list* needed to be a > >>>> primitive, here is an implementation of it as one, under the name > >>>> list-with-tail. > >>> > >>> I think it would make more sense to call it `list*'. Also it might make > >>> sense to change backquote.el so it uses this `list*' (tho probably only > >>> when passed with enough arguments). > >> > >> Agreed. On more that one occasion, I've wished we had a CL-less `list*'. > >> If you do add this feature, please make sure the existing list* compiler > >> macros keep working. > >> > > What about just deleting these compiler macros, and making cl-list* an > > alias for list*? > > > > There seems to be little point in keeping them if list* is a primitive. > > The new list* doesn't have an opcode, but cons does. > Ah I see -- there might be a speed advantage in repeated cons calls, up to a point. At what point would the function look-up be slower than repeated function calls (I thought that function calls in Emacs Lisp are slow)?