diff --git a/src/callint.c b/src/callint.c index 44dae361c1..525a18683d 100644 --- a/src/callint.c +++ b/src/callint.c @@ -367,7 +367,7 @@ DEFUN ("call-interactively", Fcall_interactively, Scall_interactively, 1, 3, 0, event with parameters. */ ptrdiff_t next_event; for (next_event = 0; next_event < key_count; next_event++) - if (EVENT_HAS_PARAMETERS (AREF (keys, next_event))) + if (inhibit_mouse_event_check || EVENT_HAS_PARAMETERS (AREF (keys, next_event))) break; /* Handle special starting chars `*' and `@'. Also `-'. */ @@ -618,6 +618,7 @@ DEFUN ("call-interactively", Fcall_interactively, Scall_interactively, 1, 3, 0, do next_event++; while (next_event < key_count + && ! inhibit_mouse_event_check && ! EVENT_HAS_PARAMETERS (AREF (keys, next_event))); break;