unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Petton <nicolas@petton.fr>
To: Mark Oteiza <mvoteiza@udel.edu>, emacs-devel@gnu.org
Subject: Re: [PATCH] * lisp/emacs-lisp/seq.el (seq-drop): Use nthcdr for lists.
Date: Sun, 12 Jun 2016 12:42:26 +0200	[thread overview]
Message-ID: <87vb1ehenh.fsf@petton.fr> (raw)
In-Reply-To: <20160612002942.GA27235@holos.localdomain>

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

Mark Oteiza <mvoteiza@udel.edu> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

      reply	other threads:[~2016-06-12 10:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-12  0:29 [PATCH] * lisp/emacs-lisp/seq.el (seq-drop): Use nthcdr for lists Mark Oteiza
2016-06-12 10:42 ` Nicolas Petton [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87vb1ehenh.fsf@petton.fr \
    --to=nicolas@petton.fr \
    --cc=emacs-devel@gnu.org \
    --cc=mvoteiza@udel.edu \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).