[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/seq 6beb2cd8d0 07/20: Update seq.el to 2.16
From: |
Stefan Monnier |
Subject: |
[elpa] externals/seq 6beb2cd8d0 07/20: Update seq.el to 2.16 |
Date: |
Thu, 1 Feb 2024 13:56:44 -0500 (EST) |
branch: externals/seq
commit 6beb2cd8d0df9bca5e0aa2c88659d989e2e543c7
Author: Nicolas Petton <nicolas@petton.fr>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Update seq.el to 2.16
* packages/seq/seq-24.el:
* packages/seq/seq-25.el: Better implementation of seq-drop for lists.
* packages/seq/seq.el: Bump version number.
---
seq-24.el | 5 +----
seq-25.el | 5 +----
seq.el | 2 +-
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/seq-24.el b/seq-24.el
index 3b08855421..d0aa618bd3 100644
--- a/seq-24.el
+++ b/seq-24.el
@@ -374,10 +374,7 @@ SEQUENCE must be a sequence of numbers or markers."
(defun seq--drop-list (list n)
"Return a list from LIST without its first N elements.
This is an optimization for lists in `seq-drop'."
- (while (and list (> n 0))
- (setq list (cdr list)
- n (1- n)))
- list)
+ (nthcdr n list))
(defun seq--take-list (list n)
"Return a list from LIST made of its first N elements.
diff --git a/seq-25.el b/seq-25.el
index b6cdb061c4..b2f5c98dd1 100644
--- a/seq-25.el
+++ b/seq-25.el
@@ -440,10 +440,7 @@ SEQUENCE must be a sequence of numbers or markers."
(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))
(cl-defmethod seq-take ((list list) n)
"Optimized implementation of `seq-take' for lists."
diff --git a/seq.el b/seq.el
index ee029f0452..9f96ec861b 100644
--- a/seq.el
+++ b/seq.el
@@ -4,7 +4,7 @@
;; Author: Nicolas Petton <nicolas@petton.fr>
;; Keywords: sequences
-;; Version: 2.15
+;; Version: 2.16
;; Package: seq
;; Maintainer: emacs-devel@gnu.org
- [elpa] externals/seq 302c673617 13/20: Backport seq-mapn fix from Emacs master, (continued)
- [elpa] externals/seq 302c673617 13/20: Backport seq-mapn fix from Emacs master, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 27a90793a1 20/20: Sync seq.el with Emacs master and bump version to 2.24, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 01c7d57eee 05/20: Update seq to version 2.15, Stefan Monnier, 2024/02/01
- [elpa] externals/seq d4b6e54a4f 04/20: Update seq.el to version 2.14, Stefan Monnier, 2024/02/01
- [elpa] externals/seq cccebf736e 09/20: ; Fix documentation of seq-subseq, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 2e44da65b0 01/20: * packages/seq: Don't define it as a :core package, Stefan Monnier, 2024/02/01
- [elpa] externals/seq fcabc1452c 17/20: * .gitignore: New file, Stefan Monnier, 2024/02/01
- [elpa] externals/seq d5b52c85db 18/20: ; Sync seq.el with Emacs master and bump version to 2.23, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 5df4175e2a 08/20: * packages/seq/seq-24.el: Rename seq-p to seqp, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 158ec91aa4 10/20: Backport seq.el changes from Emacs master, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 6beb2cd8d0 07/20: Update seq.el to 2.16,
Stefan Monnier <=
- [elpa] externals/seq 217517262b 12/20: Do not use map.el in seq-tests.el, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 387fce336c 15/20: Update seq.el to 2.20, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 7f076d2237 11/20: Fix seq-random-elt docstring, Stefan Monnier, 2024/02/01
- [elpa] externals/seq 0f64e7b048 14/20: Backport the latest changes to seq.el from Emacs master, Stefan Monnier, 2024/02/01
- [elpa] externals/seq cb7c833465 02/20: Split seq.el into separate files for different versions of Emacs, Stefan Monnier, 2024/02/01
- [elpa] externals/seq af74cec85d 19/20: ; Prefer HTTPS to HTTP in URLs, Stefan Monnier, 2024/02/01
- [elpa] externals/seq b444e2ff31 16/20: ; Sync seq.el with Emacs master and bump version to 2.22, Stefan Monnier, 2024/02/01