From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] * lisp/emacs-lisp/seq.el (seq-drop): Use nthcdr for lists. Date: Sun, 12 Jun 2016 12:42:26 +0200 Message-ID: <87vb1ehenh.fsf@petton.fr> References: <20160612002942.GA27235@holos.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1465728213 10888 80.91.229.3 (12 Jun 2016 10:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2016 10:43:33 +0000 (UTC) To: Mark Oteiza , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 12:43:22 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bC2rS-0003yx-BN for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 12:43:22 +0200 Original-Received: from localhost ([::1]:50525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC2rO-0003G2-8m for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2016 06:43:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC2qq-0003BB-6E for emacs-devel@gnu.org; Sun, 12 Jun 2016 06:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bC2qm-0007mX-6B for emacs-devel@gnu.org; Sun, 12 Jun 2016 06:42:44 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC2qk-0007lv-Vg for emacs-devel@gnu.org; Sun, 12 Jun 2016 06:42:40 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id B6AD1205DE; Sun, 12 Jun 2016 06:42:28 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 12 Jun 2016 06:42:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=GN0uMoSx37T9j3EP4WrQfzjDSR4=; b=jRBjn SfRddkaYaAAfRfSnI4tZJ3OAwdpw7VCXnA/llH8+/cjZUSANHhIyjASV1iMvbP1Y gmoPTiDt/DYZ3+Mh9YZJV9UTwsDtCGVSVmoHwplE4SESYRvP0YtDPOhZ8XsK0B5S nMBDBVF+K7RIUE+kaOb9dEsXf3n+C34/7te/fc= X-Sasl-enc: KC+PyPE/Pc2qaCjRfhUnm9Yx5uq+IDKWkVOl9ySaWNRx 1465728148 Original-Received: from blueberry (lfbn-1-7726-61.w92-167.abo.wanadoo.fr [92.167.139.61]) by mail.messagingengine.com (Postfix) with ESMTPA id 1696FCC01D; Sun, 12 Jun 2016 06:42:27 -0400 (EDT) In-Reply-To: <20160612002942.GA27235@holos.localdomain> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.2 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 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:204311 Archived-At: --=-=-= Content-Type: text/plain Mark Oteiza writes: Hi Mark, > (cl-defmethod seq-drop ((list list) n) > "Optimized implementation of `seq-drop' for lists." > - (while (and list (> n 0)) > - (setq list (cdr list) > - n (1- n))) > - list) > + (nthcdr n list)) Thanks, I applied the patch in both Emacs and ELPA. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJXXTySAAoJECM1h6R8IHkQ/uoH/jOnulUDsoy0BUV3d1U2J0Rc 4Jv928IWUhMIRDxosIkbwJErPNm/ZWLo5GJ6GlwYv7ku9HQlNnYRtaqmFY03kwHQ 4zi9WwS72hM4DTaObYn0G+UljDKsZGTw6LUiNXjLvBblXG+rg9pFe6RQdtRh16GF XsSjxkW+QN+GNZqggqjLDVt9cyVbeU2oV4gxL466HLCJrsejfGwq5j0hbddMaqgi gBXj61ITx1L2jglqdbQvkA/zBZjF/3BWRMc5pua0T2tnUnWh7qo5SJBrYCs6ic3V MMs/NKC2bGrSLJELRUU2x20N5zzXY0PaKXDcLjjyt09aIw7eHE4p2E7fQtZ2GJs= =BCET -----END PGP SIGNATURE----- --=-=-=--