GNU bug report logs -
#50067
Context menus
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 15 Aug 2021 08:52:01 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Juri Linkov <juri <at> linkov.net>
> Date: Thu, 25 Nov 2021 09:50:40 +0200
>
> --- 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;
Why check this condition inside the loops, rather than avoid entering
the loops when the condition is right, in the first place?
And please add comments there explaining the meaning of the
inhibit_mouse_event_check test.
Thanks.
This bug report was last modified 3 years and 172 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.