On 5/10/2016 12:32 PM, Eli Zaretskii wrote: > What I think we need to do instead is send a message to the main > thread that will produce a special event, and then bind that event to > kill-emacs (probably in special-event-map). Thanks. My attempt to implement this is attached. Ken