Subject: bug#54656: 29.0.50; [menu] key is not read anymore

From: Po Lu <[email-masked]>
Date: Mon, 04 Apr 2022 19:09:49 +0800

[email-masked] writes:

> It is triggered :
>
>> Thread 1 "emacs" hit Breakpoint 1, handle_one_xevent
>> (dpyinfo=0x55555774f800, event=0x7fffffffd700, finish=0x555555beabb8
>> <current_finish>, hold_quit=0x7fffffffd970) at xterm.c:5240
>> 5240	  dpyinfo->last_user_time = time;
>> (gdb) s
>> 13844	      x_display_set_last_user_time (dpyinfo, event->xkey.time);
>> (gdb) s
>> 0x000055555568a997 in x_display_set_last_user_time (time=119383756, dpyinfo=0x55555774f800) at xterm.c:5240
>> 5240	  dpyinfo->last_user_time = time;

I guess what you have to do is to step through each statement until you
find out why it isn't reaching this piece of handle_one_xevent:

#if defined XK_ISO_Lock && defined XK_ISO_Last_Group_Lock
		    || (XK_ISO_Lock <= orig_keysym
			&& orig_keysym <= XK_ISO_Last_Group_Lock)
#endif
		    ))
	    {
	      STORE_KEYSYM_FOR_DEBUG (keysym);
	      /* make_lispy_event will convert this to a symbolic
		 key.  */
	      inev.ie.kind = NON_ASCII_KEYSTROKE_EVENT;
	      inev.ie.code = keysym;
====>	      goto done_keysym;
	    }

Thanks.