From: "Elias Mårtenson" <lokedhs@gmail.com>
To: jun <netjune@163.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Can we add two args to copy-sequence?
Date: Fri, 15 Dec 2017 16:24:50 +0800 [thread overview]
Message-ID: <CADtN0WKT=4-RzJu8asV6HKRWmJioAerAwzi9Fpr4x7bgPNJZfw@mail.gmail.com> (raw)
In-Reply-To: <m2a7ykfmtf.fsf@newartisans.com>
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
On 15 December 2017 at 15:54, John Wiegley <johnw@gnu.org> wrote:
> >>>>> "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.
>
There is already the function ‘subseq’ that does exactly this, or did I
misunderstand
the question?
[-- Attachment #2: Type: text/html, Size: 935 bytes --]
next prev parent reply other threads:[~2017-12-15 8:24 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
2017-12-15 8:24 ` Elias Mårtenson [this message]
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='CADtN0WKT=4-RzJu8asV6HKRWmJioAerAwzi9Fpr4x7bgPNJZfw@mail.gmail.com' \
--to=lokedhs@gmail.com \
--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.