Variable: inhibit-mouse-event-check

inhibit-mouse-event-check is a variable defined in callint.c.

Value

nil

Documentation

Whether the interactive spec "e" requires a mouse gesture event.

If non-nil, (interactive "e") doesn't signal an error when the command was invoked by an input event that is not a mouse gesture: a click, a drag, etc. To create the event data when the input was some other event, use event-start, event-end, and event-click-count.

Probably introduced at or before Emacs version 28.1.

Source Code

// Defined in /usr/src/emacs/src/callint.c
  DEFVAR_BOOL ("inhibit-mouse-event-check", inhibit_mouse_event_check,
    doc: /* Whether the interactive spec "e" requires a mouse gesture event.
If non-nil, `(interactive "e")' doesn't signal an error when the command
was invoked by an input event that is not a mouse gesture: a click, a drag,
etc.  To create the event data when the input was some other event,
use `event-start', `event-end', and `event-click-count'.  */);