X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbuffer.c;h=a1620b750d288b88c511bd3ca9bac91a596ff754;hb=21db8709c0c2dcedbd278c7fe571290d5ce80a71;hp=58c79944f3d6debca7eba11894203fd76272256b;hpb=02f4d2761a98c5cb9d5b423d2361160a5d8c9ee4;p=chise%2Fxemacs-chise.git diff --git a/src/buffer.c b/src/buffer.c index 58c7994..a1620b7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1256,9 +1256,11 @@ with `delete-process'. delete_from_buffer_alist (buf); - /* #### This is a problem if this buffer is in a dedicated window. - Need to undedicate any windows of this buffer first (and delete them?) - */ + /* Undedicate any windows of this buffer, and make sure no windows + show it. */ + + undedicate_windows (buf, Qt); + GCPRO1 (buf); Freplace_buffer_in_windows (buf, Qnil, Qall); UNGCPRO;