]> git.eshelyaron.com Git - emacs.git/commit
Fix glitches introduced by nthcdr changes
authorPaul Eggert <eggert@Penguin.CS.UCLA.EDU>
Tue, 21 Aug 2018 09:05:07 +0000 (02:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Aug 2018 09:05:31 +0000 (02:05 -0700)
commit77fc2725985b4e5ef977ae6930835c7f0771c61c
treec578f223cba18da66b1a7cb7a38ef7e8c29e1967
parenteb83344fc7c08ec08b51e7700f1ac2632afa462c
Fix glitches introduced by nthcdr changes

* src/fns.c (Fnthcdr): Fix recently-introduced bug when
nthcdr is supposed to yield a non-nil non-cons.
Reported by Glenn Morris and by Pip Cet here:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00699.html
https://lists.gnu.org/r/emacs-devel/2018-08/msg00708.html
Speed up nthcdr for small N, as suggested by Pip Cet here:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00707.html
* test/src/fns-tests.el (test-nthcdr-simple): New test.
src/fns.c
test/src/fns-tests.el