Subject: Re: bug#31312: Segmentation fault with doom-emacs, NeoTree and Zoom

From: Eli Zaretskii <[email-masked]>
Date: Wed, 02 May 2018 22:02:32 +0300

> Date: Wed, 02 May 2018 20:43:30 +0200
> From: martin rudalics <[email-masked]>
> CC: [email-masked], [email-masked], [email-masked]
> 
> (defun foo (frame)
>    (delete-window (selected-window)))
> 
> (add-hook 'window-size-change-functions 'foo)
> 
> and do C-x 2.

Right, and as you can see, selected_window is still a valid leaf
window when we abort in this case.