unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: MON KEY <monkey@sandpframing.com>
Cc: 6448@debbugs.gnu.org
Subject: bug#6448: `event-apply-modifier' EVENT arg accepts float then bails
Date: Sat, 19 Jun 2010 13:38:37 -0400	[thread overview]
Message-ID: <871vc2kjmq.fsf@stupidchicken.com> (raw)
In-Reply-To: <AANLkTimzpdigelN5WfxGbq_0TnxaKqbwvl5-v-APiZyJ@mail.gmail.com> (MON KEY's message of "Thu, 17 Jun 2010 16:25:36 -0400")

MON KEY <monkey@sandpframing.com> 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	other threads:[~2010-06-19 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2010-06-20  5:20   ` MON KEY
2010-06-20  8:01     ` Andreas Schwab
2010-06-20 20:08       ` MON KEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871vc2kjmq.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=6448@debbugs.gnu.org \
    --cc=monkey@sandpframing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).