Sanitize some buffer display calls with new method specifiers.
commit32b24bc8d1653cab931b09570bbfc4249993b945
authorMartin Rudalics <rudalics@gmx.at>
Tue, 11 Jan 2011 15:55:59 +0000 (11 16:55 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 11 Jan 2011 15:55:59 +0000 (11 16:55 +0100)
tree7f2ea76183d6be1e3a325aa4a349a2d00737e081
parenta10006568944c9ec4c6d40aecb7a3c3a5eb3c15a
Sanitize some buffer display calls with new method specifiers.

* buff-menu.el (Buffer-menu-mode-map): Bind "q" to
quit-restore-window.
(buffer-menu): Call pop-to-buffer-same-window.
(buffer-menu-other-window): Call pop-to-buffer-other-window.
(Buffer-menu-select): Rewrite using display-buffer-same-window
and display-buffer.
(Buffer-menu-1-window, Buffer-menu-mouse-select)
(Buffer-menu-this-window): Call pop-to-buffer-same-window.
(Buffer-menu-other-window): Call pop-to-buffer-other-window.
(Buffer-menu-switch-other-window): Call
display-buffer-same-frame-other-window.
(Buffer-menu-2-window): Add label argument in calls of
display-buffer-same-window and
pop-to-buffer-same-frame-other-window.

* mail/reporter.el (reporter-submit-bug-report): Use
display-buffer-same-frame-other-window.

* progmodes/compile.el (compilation-find-file): Use
display-buffer-same-frame.

* progmodes/inf-lisp.el (switch-to-lisp): Rewrite with new buffer
display method specifiers.

* vc/ediff-ptch.el (ediff-get-patch-buffer): Use
pop-to-buffer-other-window.
(ediff-patch-file-internal): Replace switch-to-buffer by
pop-to-buffer-same-window and switch-to-buffer-other-window by
pop-to-buffer-other-window.

* vc/pcvs.el (cvs-ediff-exit-hook): Call
pop-to-buffer-same-window instead of switch-to-buffer.
(cvs-mode-find-file): Replace switch-to-buffer and
switch-to-buffer-other-window by pop-to-buffer-same-window and
pop-to-buffer-other-window.  Replace call to dired-other-window
by call to display-buffer-other-window.
(cvs-temp-buffer): Call display-buffer-other-window instead of
display-buffer.

* vc/pcvs-util.el (cvs-bury-buffer): Call quit-restore-window.
lisp/ChangeLog
lisp/buff-menu.el
lisp/mail/reporter.el
lisp/progmodes/compile.el
lisp/progmodes/inf-lisp.el
lisp/vc/ediff-ptch.el
lisp/vc/pcvs-util.el
lisp/vc/pcvs.el