unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 35238@debbugs.gnu.org
Subject: bug#35238: 27.0.50; Clarify eventp behaviour with booleans
Date: Thu, 11 Apr 2019 19:42:46 -0400	[thread overview]
Message-ID: <jwvsguonmee.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pnpsp3jd.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 11 Apr 2019 23:42:30 +0100")

> As mentioned in a past commit[1], nil is not an event.
> Since the car of a mouse click event is considered its type,
> shouldn't (nil) also be rejected as an event?

Not sure it's worth the trouble (there are already lots of other objects
that aren't events but for which eventp returns non-nil).

> Should t be counted as an event?
>
>   (eventp t)    ; => t
>   (eventp '(t)) ; => t

Not sure if we ever generate such an event, but what would be the
benefit of rejecting it?


        Stefan





  reply	other threads:[~2019-04-11 23:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 22:42 bug#35238: 27.0.50; Clarify eventp behaviour with booleans Basil L. Contovounesios
2019-04-11 23:42 ` Stefan Monnier [this message]
2019-04-12 11:11   ` Basil L. Contovounesios
2019-04-12 12:25     ` Stefan Monnier
2019-04-12 12:30     ` Eli Zaretskii
2019-04-13 17:53       ` Basil L. Contovounesios
2019-04-14  3:13         ` Stefan Monnier
2019-04-22 23:19           ` Basil L. Contovounesios
2019-04-23  2:06             ` Stefan Monnier
2019-05-07 17:08               ` Basil L. Contovounesios

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=jwvsguonmee.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=35238@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    /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).