bug#81510: 31.0.90; NS (macOS): clicking a disabled (:enable nil) tab-bar item crases Emacs
Al Haji-Ali <[email protected]> Thu, 30 Jul 2026 20:56:13 +0100
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 30/07/2026, Stéphane Marks wrote:
> I ran your test case with Alan's patch and it did not crash for me (or with
> mine).
I am not sure what the issue is. I applied the patch on top of
e0d2d80a628, and I confident that the crash still happens because the
change, as far as I can see, does not change the value being passed to
kbd_buffer_store_event_hold.
The reason w32term does not crash is because it protects against NO_EVENT here:
if (inev.kind != NO_EVENT)
{
kbd_buffer_store_event_hold (&inev, hold_quit);
count++;
}
In ns_term, the macro EV_TRAILER2 just checks if the event pointer
q_event_ptr is non-nil, regardless of the value of emacs_event.kind.
-- Al