From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Can we add two args to copy-sequence? Date: Thu, 14 Dec 2017 23:54:36 -0800 Message-ID: References: <253aa3ee.50f5.160583aebc5.Coremail.netjune@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513324576 12840 195.159.176.226 (15 Dec 2017 07:56:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 07:56:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin) Cc: emacs-devel@gnu.org To: jun Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 08:56:07 2017 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 1ePkqk-0002oY-FN for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 08:56:06 +0100 Original-Received: from localhost ([::1]:44974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePkqr-0003v4-Le for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 02:56:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePkqe-0003ss-4J for emacs-devel@gnu.org; Fri, 15 Dec 2017 02:56:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePkqZ-0007OK-AQ for emacs-devel@gnu.org; Fri, 15 Dec 2017 02:56:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePkqO-00077u-Pq; Fri, 15 Dec 2017 02:55:44 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:49553) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1ePkqL-0003kB-Ux; Fri, 15 Dec 2017 02:55:42 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id DD79820BF1; Fri, 15 Dec 2017 02:55:37 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 15 Dec 2017 02:55:37 -0500 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id 6CB7B7E347; Fri, 15 Dec 2017 02:55:37 -0500 (EST) In-Reply-To: <253aa3ee.50f5.160583aebc5.Coremail.netjune@163.com> (jun's message of "Fri, 15 Dec 2017 11:32:24 +0800 (CST)") Mail-Followup-To: jun , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:221085 Archived-At: >>>>> "j" == jun writes: j> like this: (copy-sequence seq &optional from to). 'from' and 'to' mean the j> same as in the function 'substring'. I'd rather not overload copy-sequence that way, and rather have a new function named (sublist LIST &optional FROM TO), even if copy-sequence xs == sublist xs. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2