all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "John Wiegley" <johnw@gnu.org>
To: jun <netjune@163.com>
Cc: emacs-devel@gnu.org
Subject: Re: Can we add two args to copy-sequence?
Date: Thu, 14 Dec 2017 23:54:36 -0800	[thread overview]
Message-ID: <m2a7ykfmtf.fsf@newartisans.com> (raw)
In-Reply-To: <253aa3ee.50f5.160583aebc5.Coremail.netjune@163.com> (jun's message of "Fri, 15 Dec 2017 11:32:24 +0800 (CST)")

>>>>> "j" == jun  <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 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



  reply	other threads:[~2017-12-15  7:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15  3:32 Can we add two args to copy-sequence? jun
2017-12-15  7:54 ` John Wiegley [this message]
2017-12-15  8:24   ` Elias Mårtenson
2017-12-15 14:52     ` jun
2017-12-16  6:18       ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2a7ykfmtf.fsf@newartisans.com \
    --to=johnw@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=netjune@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.