--- Begin Message ---
Subject: |
seq-mapn fails with circular sequence |
Date: |
Tue, 11 Apr 2017 08:12:40 -0000 |
User-agent: |
SquirrelMail/1.5.2 [SVN] |
On Emacs-25 circular structures cause seq-mapn not to terminate
although the documentation suggest that they should.
Consider:
(defvar l '(a c d))
(setq l (nconc l l))
(seq-mapn #'cons l '(1))
This should return '((a . 1)) but actually does not terminate.
The problem is caused by call to seq-into which includes:
(append sequence nil)
The problem does exist on trunk which does this instead:
(if (listp sequence)
sequence
(append sequence nil)))
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#26440: seq-mapn fails with circular sequence |
Date: |
Tue, 01 Aug 2017 20:40:20 +0200 |
Nicolas Petton <address@hidden> writes:
Hi Phillip,
> This is using seq.el from trunk:
>
> (defvar l '(a c d))
> (setq l (nconc l l))
> (seq-mapn #'cons l '(1)) ;; ((a . 1))
I'm closing this issue, but feel free to reopen it if you can reproduce
the problem with master.
Cheers,
Nico
signature.asc
Description: PGP signature
--- End Message ---