unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6448: `event-apply-modifier' EVENT arg accepts float then bails
@ 2010-06-17 20:25 MON KEY
  2010-06-19 17:38 ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: MON KEY @ 2010-06-17 20:25 UTC (permalink / raw)
  To: 6448

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-")

--
/s_P\





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-20 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 20:25 bug#6448: `event-apply-modifier' EVENT arg accepts float then bails MON KEY
2010-06-19 17:38 ` Chong Yidong
2010-06-20  5:20   ` MON KEY
2010-06-20  8:01     ` Andreas Schwab
2010-06-20 20:08       ` MON KEY

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).