On 11/1/2022 9:11 AM, Jim Porter wrote: > However, I'm not sure how to do this in a complete way without tweaking > 'delete-frame-functions'. ... Attached is a (hopefully) safer version of my change to 'delete-frame'. In this patch, a hook can only cancel frame deletion if FORCE is non-nil. This way, if there were ever some bug with a hook, you (or some code) can still force-delete the frame. This would probably still need a NEWS entry, but I'm personally less worried about this change compared to my previous revision. What do you think?