+2008-04-17 Sam Steingold <sds@gnu.org>
+
+ * pcvs-util.el (cvs-bury-buffer): Use quit-window instead of the
+ idiosyncratic bury-buffer/delete-window logic.
+
2008-04-17 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/crm.el (crm-completion-help, crm-complete)
(let ((win (if (eq buf (window-buffer (selected-window))) (selected-window)
(get-buffer-window buf t))))
(when 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)))
+ (quit-window nil win)))
(when mainbuf
(let ((mainwin (or (get-buffer-window mainbuf)
(get-buffer-window mainbuf 'visible))))