Subject: Re: bug#1450: w32_reset_fringes

From: martin rudalics <[email-masked]>
Date: Fri, 28 Nov 2008 14:22:45 +0100

The first report was too complicated.  It's sufficient to put the
following line into your .emacs

(setq default-frame-alist '((minibuffer)))

and kill the minibuffer window.  The bug seems due to Richard's change
from 2008-02-08 ...

***************
*** 1393,1404 ****
   	      && EQ (frame,
   		     WINDOW_FRAME (XWINDOW
   				   (FRAME_MINIBUF_WINDOW (XFRAME (this))))))
! 	    error ("Attempt to delete a surrogate minibuffer frame");
   	}
       }

!   /* Run `delete-frame-functions' unless frame is a tooltip.  */
!   if (!NILP (Vrun_hooks)
         && NILP (Fframe_parameter (frame, intern ("tooltip"))))
       {
         Lisp_Object args[2];
--- 1395,1415 ----
   	      && EQ (frame,
   		     WINDOW_FRAME (XWINDOW
   				   (FRAME_MINIBUF_WINDOW (XFRAME (this))))))
! 	    {
! 	      /* If we MUST delete this frame, delete the other first.  */
! 	      if (!NILP (force))
! 		Fdelete_frame (this, force);
! 	      else
! 		error ("Attempt to delete a surrogate minibuffer frame");
! 	    }
   	}
       }

... but maybe other changes are involved too.

martin