+2008-05-07 Sam Steingold <sds@gnu.org>
+
+ * pcvs-util.el (cvs-bury-buffer): Revert my patch: quit-window
+ appears to be too aggressive with window removal.
+
2008-05-08 Michael McNamara <mac@mail.brushroad.com>
* verilog-mode.el (verilog-type-font-keywords): Add leda and 0in
(let ((win (if (eq buf (window-buffer (selected-window))) (selected-window)
(get-buffer-window buf t))))
(when win
- (quit-window nil win)))
+ (if (window-dedicated-p win)
+ (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)
+;;; )
+ )))
+ (with-current-buffer buf
+ (bury-buffer (unless (and (eq buf (window-buffer (selected-window)))
+ (not (window-dedicated-p (selected-window))))
+ buf)))
(when mainbuf
(let ((mainwin (or (get-buffer-window mainbuf)
(get-buffer-window mainbuf 'visible))))