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

From: martin rudalics <[email-masked]>
Date: Wed, 02 May 2018 15:42:58 +0200

> So we need the same defense after prepare_menu_bars as we
 > have after do_pending_changes, I think.

If you mean something like

   if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw)
     sw = w;

I'm afraid that this would fail since selected_window has no buffer
any more (or may have even been recycled already).  Or am I missing
something?

martin