Improve documentation of 'inhibit-mouse-event-check'

* etc/NEWS:
* src/callint.c (syms_of_callint): Fix wording of the
documentation of 'inhibit-mouse-event-check'.
This commit is contained in:
Eli Zaretskii 2021-08-23 22:14:03 +03:00
parent 4281e5b34d
commit 8f43180f0d
2 changed files with 8 additions and 7 deletions

View file

@ -3848,9 +3848,9 @@ current buffer will be shown first in the "*xref*" buffer.
---
** New variable 'inhibit-mouse-event-check'.
If bound to non-nil, a command with '(interactive "e")'
doesn't signal an error when no mouse event is produced
while using the keyboard.
If bound to non-nil, a command with '(interactive "e")' doesn't signal
an error when invoked by input event that is not a mouse click (e.g.,
a key sequence).
* Changes in Emacs 28.1 on Non-Free Operating Systems

View file

@ -901,10 +901,11 @@ a way to turn themselves off when a mouse command switches windows. */);
Vmouse_leave_buffer_hook = Qnil;
DEFVAR_BOOL ("inhibit-mouse-event-check", inhibit_mouse_event_check,
doc: /* Non-nil means the interactive spec "e" doesn't check for events.
In this case `(interactive "e")' doesn't signal an error when no mouse event
is produced while using the keyboard. Then `event-start', `event-end',
`event-click-count' can create a new event. */);
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'. */);
inhibit_mouse_event_check = false;
defsubr (&Sinteractive);