Subject: Re: bug#12251: 24.2.50; crash in note_mouse_highlight

From: martin rudalics <[email-masked]>
Date: Tue, 28 Aug 2012 19:05:09 +0200

> Debugger entered--Lisp error: (error "#<window 114> is not a live window")
 >   signal(error ("#<window 114> is not a live window"))
 >   error("%s is not a live window" #<window 114>)
 >   window-normalize-window(#<window 114> t)
 >   record-window-buffer(#<window 114>)
 >   set-window-configuration(#<window-configuration>)
 >   ispell-process-line("^report the filtring lift\n" nil)
 >   ispell-region(1 26)
 >   ispell-buffer()
 >   run-hooks(log-edit-done-hook)
 >   log-edit-done()
 >   call-interactively(log-edit-done nil nil)

`set-window-configuration' now has

	  w = XWINDOW (window);
	  if (!NILP (w->buffer)
	      && !EQ (w->buffer, p->buffer)
	      && !NILP (BVAR (XBUFFER (p->buffer), name)))
	    /* If a window we restore gets another buffer, record the
	       window's old buffer.  */
	    call1 (Qrecord_window_buffer, window);

so it's a complete mystery why this fails.  If it happens too
frequently, please take out the

	    call1 (Qrecord_window_buffer, window);

in Fset_window_configuration.  But if you leave it in and the bug
happens again, please try to locate the incriminated window
(`window-tree' could be useful) and tell me whether it's still there and
whether it has a buffer.

Thanks, martin