(condition-case ()
(delete-window win)
(error (iconify-frame (window-frame win))))
- (if (and mainbuf (get-buffer-window mainbuf))
- ;; FIXME: if the buffer popped into a pre-existing window,
- ;; we don't want to delete that window.
- t ;;(delete-window win)
- ))))
+;;; (if (and mainbuf (get-buffer-window mainbuf))
+;;; ;; FIXME: if the buffer popped into a pre-existing window,
+;;; ;; we don't want to delete that window.
+;;; t ;;(delete-window win)
+;;; )
+ )))
(with-current-buffer buf
(bury-buffer (unless (and (eq buf (window-buffer (selected-window)))
(not (window-dedicated-p (selected-window))))