bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6448: `event-apply-modifier' EVENT arg accepts float then bails


From: MON KEY
Subject: bug#6448: `event-apply-modifier' EVENT arg accepts float then bails
Date: Sun, 20 Jun 2010 16:08:55 -0400

On Sun, Jun 20, 2010 at 4:01 AM, Andreas Schwab <address@hidden> wrote:
>> Is there any good reason not to change numberp -> integerp?
>
> Look at (numberp) as a more efficient alternative to (and (not (lisp))
> (not (symbolp))).

I assume that in the above for `(not (lisp)' you intend `(not (listp)'?

> There is no need to be conclusive.

Thank you for taking the time to answer my query.
This addresses exactly the concern I had in mind but was afraid to ask :).

So, use of `integerp' is neither no more efficient than `numberp' nor any more
useful for debugging/signaling purposes where there is a known constraint on
the arg type?  e.g. for example w/ `event-apply-modifier' where it is known that
EVENT can only be an integer?

> Andreas.

--
/s_P\





reply via email to

[Prev in Thread] Current Thread [Next in Thread]