bug#81510: 31.0.90; NS (macOS): clicking a disabled (:enable nil) tab-bar item crases Emacs
Al Haji-Ali <[email protected]> Fri, 31 Jul 2026 08:19:36 +0100
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 30/07/2026, Alan Third wrote: > On Thu, Jul 30, 2026 at 08:56:13PM +0100, Al Haji-Ali wrote: >> 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. > > So something like the attached? Yes! This fixed the crash that I found. Can we also check the site in EV_TRAILER2? If q_event_ptr is not NULL, kbd_buffer_store_event_hold is called immediately and unconditionally rather than hold_event, so in that case kbd_buffer_store_buffered_event could be called with NO_EVENT. On a bigger note: would it be possible to print a message with information whenever emacs_abort is called, since it is being used as an assert function? I see that there's a __android_log_print (presumably for android), though I am not sure what info it ultimately prints. -- Al