From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Constantino Calancha" Newsgroups: gmane.emacs.bugs Subject: bug#21782: 25.0.50; New functions nfront/front Date: Fri, 30 Oct 2015 11:53:30 +0900 Message-ID: References: <87wpu5jd1y.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1446173487 763 80.91.229.3 (30 Oct 2015 02:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 02:51:27 +0000 (UTC) Cc: f92capac@gmail.com To: "21782@debbugs.gnu.org" <21782@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 03:51:16 2015 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 1Zrzma-00081H-4p for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 03:51:12 +0100 Original-Received: from localhost ([::1]:48123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrzmZ-0005T8-Gt for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2015 22:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrzmV-0005T3-Mq for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 22:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrzmQ-0006FZ-Le for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 22:51:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrzmQ-0006FO-Gz for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 22:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrzmQ-0005Iz-Ch for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 22:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Constantino Calancha" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2015 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21782-submit@debbugs.gnu.org id=B21782.144617342620338 (code B ref 21782); Fri, 30 Oct 2015 02:51:02 +0000 Original-Received: (at 21782) by debbugs.gnu.org; 30 Oct 2015 02:50:26 +0000 Original-Received: from localhost ([127.0.0.1]:45033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrzlq-0005Hy-5B for submit@debbugs.gnu.org; Thu, 29 Oct 2015 22:50:26 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:34769) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrzln-0005Hl-SV for 21782@debbugs.gnu.org; Thu, 29 Oct 2015 22:50:24 -0400 Original-Received: by padhk11 with SMTP id hk11so59051359pad.1 for <21782@debbugs.gnu.org>; Thu, 29 Oct 2015 19:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:cc:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=PnT7nvEAYAiaxm4eBMNojCKM2h5zRldxTBZFZjI8bpg=; b=ecEmUd88qfAsHm44UDbzjw1R2BYwHbvB5iYjXFY8JkF/ctFhvLtsG0DkEl04yz2Wui KV+4lzfWr6JTLB8O69kSf4AcKVoU6AiTRwxlSMmMsVsHkhdwyWjaVv27ewUXI2KNzozl ZpqPcnRyh+IotJmlAroWkT9vpEL1tjfHaGQ126ssUj4Wrgg+JuPxt1V4okrZylwqVPyt pjaFbFsEVgteCTjQ2SBLPNpghvDqFD0BT+z7YuQ9fQ+fulZEoFctI3HdEf0ab12H+ro/ 6idI+U6FZaURKY8G0ZVEKc5WZmvz9R/hwv39FDqKL6xR+NXc/5GBamoUBfHbsLkAAWbF qg7g== X-Received: by 10.67.6.161 with SMTP id cv1mr5715848pad.131.1446173422842; Thu, 29 Oct 2015 19:50:22 -0700 (PDT) Original-Received: from calancha-ilc.kek.jp (calancha-ilc.kek.jp. [130.87.234.234]) by smtp.gmail.com with ESMTPSA id fk8sm4846409pab.33.2015.10.29.19.50.21 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 Oct 2015 19:50:22 -0700 (PDT) In-Reply-To: <87wpu5jd1y.fsf@web.de> User-Agent: Opera Mail/12.16 (Linux) 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: 208.118.235.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:108165 Archived-At: Im sorry Michael, but i dont see your point: do you mean the fact to call nreverse twice? nreverse is in fact very efficient; and last already use nthcdr in its implementation. Please elaborate more. As i mentioned, they are not exactly the same function as seq-take. Why i need to pollute my global space with all seq.el just to use this fundamental operation on a list? I we want this in the core, we may also consider to implement such functionality in src/fns.c Tino On Fri, 30 Oct 2015 11:38:33 +0900, Michael Heerdegen wrote: > Tino Calancha writes: > >> + (nreverse (last (nreverse list) n)))) > > Isn't this horribly inefficient? It would be better to use `nthcdr' or > a simple loop. > > Dunno if this should be in the core, I think having this functionality > in "seq.el" is a good place. > > > Michael.