unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: MON KEY <monkey@sandpframing.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 6448@debbugs.gnu.org
Subject: bug#6448: `event-apply-modifier' EVENT arg accepts float then bails
Date: Sun, 20 Jun 2010 16:08:55 -0400	[thread overview]
Message-ID: <AANLkTimiPMtBCt6LChEhvFwTSmh5qt5tKvb8ic6Jzdlg@mail.gmail.com> (raw)
In-Reply-To: <m2aaqqyvws.fsf@igel.home>

On Sun, Jun 20, 2010 at 4:01 AM, Andreas Schwab <schwab@linux-m68k.org> 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	other threads:[~2010-06-20 20:08 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
2010-06-20  5:20   ` MON KEY
2010-06-20  8:01     ` Andreas Schwab
2010-06-20 20:08       ` MON KEY [this message]

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=AANLkTimiPMtBCt6LChEhvFwTSmh5qt5tKvb8ic6Jzdlg@mail.gmail.com \
    --to=monkey@sandpframing.com \
    --cc=6448@debbugs.gnu.org \
    --cc=schwab@linux-m68k.org \
    /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).