From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: Can we add two args to copy-sequence? Date: Fri, 15 Dec 2017 16:24:50 +0800 Message-ID: References: <253aa3ee.50f5.160583aebc5.Coremail.netjune@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11451bae00081d05605cbc14" X-Trace: blaine.gmane.org 1513326298 16797 195.159.176.226 (15 Dec 2017 08:24:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 08:24:58 +0000 (UTC) To: jun , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 09:24:53 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 1ePlIb-00046q-43 for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 09:24:53 +0100 Original-Received: from localhost ([::1]:45065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePlIi-0005u5-86 for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 03:25:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePlIb-0005to-EG for emacs-devel@gnu.org; Fri, 15 Dec 2017 03:24:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePlIa-0003Yy-Ip for emacs-devel@gnu.org; Fri, 15 Dec 2017 03:24:53 -0500 Original-Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:41287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePlIa-0003YP-DW for emacs-devel@gnu.org; Fri, 15 Dec 2017 03:24:52 -0500 Original-Received: by mail-it0-x22d.google.com with SMTP id x28so17796485ita.0 for ; Fri, 15 Dec 2017 00:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cCHIKFVz5WBkYsO8LPrJb1r/u+ET7yi7d/rPq9ZLkl0=; b=kxbzkwmDu3DYbgol8r9W5z/JkfWtqHHj8C2HmGIYOXscRFR/sBbysegBiYDoUrOpp6 QQYCTPx1zgLveZmLsBfnz6EJJN4oks2f/dxnhsEG2hw6kCJpQ68j/HciZgokDWsQbm+y GyWw/F+SlJrGu8PDzgg6feBvRGNSGWBkhOvTuiVgOfnFLeoC3iCOAfnZH2e51YZNUMZw pMqg+2sU+aEFhsKQNwYhrlyyXt8aFxI6aODl1GIe9MnS6h06wIgJhB2CaW8mKPIIk6bI zgf+WvYY01WfVvQlpdEV23CULCH5S5o5N9m1TXimz6EX4SSEB82vkn7Mywp7IMm3PZZl VUOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=cCHIKFVz5WBkYsO8LPrJb1r/u+ET7yi7d/rPq9ZLkl0=; b=KJ3ABYiOxBkkzxRNVZFFvw0yiIVMMXlRMxxGwfrkPiyMUF4V3+w2o+5F8eR+tHI+4q 8fdiZ5Xf7TXUT5123qJoA1whbQYDLxL34a5feSxXoyqcO/Li7/90CEB7iFZStMk8mobO T8+w3fXdEuopZTdCkV9hym9DP7sazfJ9M9U7XfXEIIUbMz5br66mfGZIedKV/vRtALMy OsaBvQec5eBs24Bz5ezWRqblPTjWLwd2Rz9syos7o8aVOidYBiGLtOnEsAGjAq6OzMA+ rODmytcoNIQ3SV6lsNxuC2PMWKL/M/KvXa5KloX4zkxR7I2EWsZ0J36P4Y3+w17IS/hJ J8KQ== X-Gm-Message-State: AKGB3mJ9G4oF6o5T0K9D1fg7YXEIb3WilnKIfAYCimTHoLwwWFG/i+Cj omgROV0aWf7JI0NKE1BACOJoohS9xrLL05m5zvU= X-Google-Smtp-Source: ACJfBovesSrTUn8ald8xGcnnUV0dF1kymFcIqj/Vc01YjzXPMjOsO5uov9qYYnGTusKymN73mQ53sw42lnjrmC6m7iI= X-Received: by 10.36.91.15 with SMTP id g15mr6903233itb.141.1513326290927; Fri, 15 Dec 2017 00:24:50 -0800 (PST) Original-Received: by 10.107.51.193 with HTTP; Fri, 15 Dec 2017 00:24:50 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22d 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:221086 Archived-At: --001a11451bae00081d05605cbc14 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 15 December 2017 at 15:54, John Wiegley wrote: > >>>>> "j" =3D=3D 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 =3D=3D > sublist xs. > There is already the function =E2=80=98subseq=E2=80=99 that does exactly th= is, or did I misunderstand the question? --001a11451bae00081d05605cbc14 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 15 December 2017 at 15:54, John Wiegley <johnw@gnu.org> wrote:=
>>>>> "j" =3D=3D jun=C2=A0 <netjune@163.com> 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 f= unction
named (sublist LIST &optional FROM TO), even if copy-sequence xs =3D=3D= sublist xs.

There is already the funct= ion =E2=80=98subseq=E2=80=99 that does exactly this, or did I misunderstand=
the question?
--001a11451bae00081d05605cbc14--