GNU bug report logs - #21782
25.0.50; New functions nfront/front

Previous Next

Package: emacs;

Reported by: Tino Calancha <f92capac <at> gmail.com>

Date: Thu, 29 Oct 2015 09:55:01 UTC

Severity: wishlist

Found in version 25.0.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tino Calancha <f92capac <at> gmail.com>
To: 21782 <at> debbugs.gnu.org
Cc: "C. Calancha" <f92capac <at> gmail.com>
Subject: bug#21782: 25.0.50; New functions nfront/front
Date: Fri, 30 Oct 2015 11:10:47 +0900 (JST)
[Message part 1 (text/plain, inline)]
The new patch has more sense to me.

I correct my previous wish about the func. behaviour with respect N:
*) N nil give same output as N = 1.
*) N <= 0 return nil.


(let ((ltest '(1 2 3 4 5 6)))
  (nfront ltest 0))
nil
(let ((ltest '(1 2 3 4 5 6)))
  (nfront ltest -1))
nil
(let ((ltest '(1 2 3 4 5 6)))
  (nfront ltest 3))
(1 2 3)
(let ((ltest '(1 2 3 4 5 6)))
  (nfront ltest))
(1)
(let ((ltest '(1 2 3 4 5 6)))
  (nfront ltest 100))
(1 2 3 4 5 6)
[subr-3.patch (text/plain, attachment)]

This bug report was last modified 8 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.