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: Chong Yidong
Subject: bug#6448: `event-apply-modifier' EVENT arg accepts float then bails
Date: Sat, 19 Jun 2010 13:38:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

MON KEY <address@hidden> writes:

> Can `read-event' return a float?
>
> If not, why does `event-apply-modifier' invoke the `numberp' predicate instead
> of `integerp'?
>
> e.g. these signals an error:
>
>  (event-apply-modifier 32.3 'shift 25 "<S-")
>  (event-apply-modifier (float (string-to-char "\C-s")) 'shift 25 "<S-")
>
> This is kosher:
>
>  (event-apply-modifier 19 'shift 25 "<S-")

I don't think this is a problem in real life.





reply via email to

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