Subject: Re: bug#6078: 23.1.90; switch-to-buffer does not redisplay until an event occurs

From: martin rudalics <[email-masked]>
Date: Mon, 03 May 2010 19:17:07 +0200

>> (BTW, you need neither the `select-window' nor the `switch-to-buffer'
 >> in your code, `set-window-buffer' is sufficient.)
 >
 > OTOH, you'll want to pay attention to dedicated windows
 > (i.e. save&restore the window-dedicated-p value).

Dimitri already saves and restores the window configuration.  This
should handle "weakly" dedicated windows.  If he also wants to handle
strongly dedicated windows, `set-window-buffer' will barf anyway - he
has to reset the status manually for each window and have the restore
step take care of setting it again.

martin