GNU bug report logs - #4136
23.1; delete-pair

Previous Next

Package: emacs;

Reported by: Eli Barzilay <eli <at> barzilay.org>

Date: Thu, 13 Aug 2009 06:30:04 UTC

Severity: normal

Tags: fixed, moreinfo

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #186 received at 4136 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> jurta.org>, "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 4136 <at> debbugs.gnu.org,
 Eli Barzilay <eli <at> barzilay.org>
Subject: RE: bug#4136: 23.1; delete-pair
Date: Mon, 16 Nov 2020 13:37:09 -0800 (PST)
> The closest function that I found is:
> 
>   (cl-plusp NUMBER)
>   Return t if NUMBER is positive.
> 
> but I'm not sure why it would be better than using just (> number 0).

It's there to emulate a Common Lisp predicate, `plusp'.

Why does Common Lisp have `plusp'?  Presumably for
use with higher-order functions, to not have to use
a lambda form etc.

(mapcar #'plusp '(4 -3.1 0 42))
(mapcar (lambda (x) (> x 0)) '(4 -3.1 0 42))




This bug report was last modified 4 years and 182 days ago.

Previous Next


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