Revive display-buffer-function, add a few more buffer display functions
commit7cd6e1a6fbd7f2307050fc93858acbedbf68c7f4
authorMartin Rudalics <rudalics@gmx.at>
Fri, 19 Nov 2010 16:16:41 +0000 (19 17:16 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 19 Nov 2010 16:16:41 +0000 (19 17:16 +0100)
tree24634b3461a8e36071ce322dfbd66363f686f0d0
parent2e274d7de744230b9a8e7a77172afd2621d4760c
Revive display-buffer-function, add a few more buffer display functions
and adjust callers.

* window.el (display-buffer-same-frame-specifiers)
(display-buffer-other-window-same-frame-specifiers): New
constants.
(display-buffer): Call display-buffer-function if it's non-nil.
(display-buffer-same-window, display-buffer-other-window)
(pop-to-buffer-other-window, switch-to-buffer-other-window):
Adjust doc-strings.
(display-buffer-same-frame)
(display-buffer-other-window-same-frame)
(pop-to-buffer-same-frame)
(pop-to-buffer-other-window-same-frame)
(switch-to-buffer-same-frame)
(switch-to-buffer-other-window-same-frame): New functions.
(display-buffer-function): Un-obsolete.

* bookmark.el (bookmark-bmenu-2-window): Use
pop-to-buffer-other-window.
(bookmark-bmenu-switch-other-window): Use
display-buffer-other-window.

* progmodes/etags.el (find-tag-other-window): New argument
other-frame. Call either pop-to-buffer-other-window or
pop-to-buffer-other-frame.
(find-tag-other-frame): Call find-tag-other-window with
other-frame argument t.

* speedbar.el (speedbar-find-file-in-frame)
(speedbar-buffer-click): Use pop-to-buffer-other-frame.

* term/ns-win.el (ns-find-file): Use pop-to-buffer-other-frame.

* erc-speedbar.el (erc-speedbar-goto-buffer): Use
pop-to-buffer-other-frame.

* windows.texi (Displaying Buffers): Document
display-buffer-function revival and the -same-frame,
-other-window-same-frame postfixed functions.
doc/lispref/ChangeLog
doc/lispref/windows.texi
lisp/ChangeLog
lisp/bookmark.el
lisp/erc/ChangeLog
lisp/erc/erc-speedbar.el
lisp/progmodes/etags.el
lisp/speedbar.el
lisp/term/ns-win.el
lisp/window.el