aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-02-12 13:10:30 +0800
committerChong Yidong2012-02-12 13:10:30 +0800
commitd4bd55e7aed47124919d022852d48c53d389fe80 (patch)
tree12f3a210cfdd41da308fb6082e516ef57ad24924
parent95986d5276c475c84e8de8b8a31296bd2800ea94 (diff)
downloademacs-d4bd55e7aed47124919d022852d48c53d389fe80.tar.gz
emacs-d4bd55e7aed47124919d022852d48c53d389fe80.zip
* lisp/window.el (display-buffer): Doc fix.
Fixes: debbugs:10785
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/window.el20
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3dabef53ebb..2f830b7447b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-02-12 Chong Yidong <cyd@gnu.org>
2
3 * window.el (display-buffer): Doc fix (Bug#10785).
4
12012-02-12 Glenn Morris <rgm@gnu.org> 52012-02-12 Glenn Morris <rgm@gnu.org>
2 6
3 * term/pc-win.el (x-selection-owner-p, x-own-selection-internal) 7 * term/pc-win.el (x-selection-owner-p, x-own-selection-internal)
diff --git a/lisp/window.el b/lisp/window.el
index 298310418e8..edd8a113876 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -4625,16 +4625,20 @@ buffer. Return the window chosen for displaying BUFFER-OR-NAME,
4625or nil if no such window is found. 4625or nil if no such window is found.
4626 4626
4627Optional argument ACTION should have the form (FUNCTION . ALIST). 4627Optional argument ACTION should have the form (FUNCTION . ALIST).
4628FUNCTION is either a function or a list of functions. Each such 4628FUNCTION is either a function or a list of functions.
4629function is called with two arguments: the buffer to display and 4629ALIST is an arbitrary association list (alist).
4630an alist. It should either display the buffer and return the 4630
4631window, or return nil if unable to display the buffer. 4631Each such FUNCTION should accept two arguments: the buffer to
4632display and an alist. Based on those arguments, it should either
4633display the buffer and return the window, or return nil if unable
4634to display the buffer.
4632 4635
4633The `display-buffer' function builds a function list and an alist 4636The `display-buffer' function builds a function list and an alist
4634from `display-buffer-overriding-action', `display-buffer-alist', 4637by combining the functions and alists specified in
4635the ACTION argument, `display-buffer-base-action', and 4638`display-buffer-overriding-action', `display-buffer-alist', the
4636`display-buffer-fallback-action' (in that order). Then it calls 4639ACTION argument, `display-buffer-base-action', and
4637each function in the combined function list in turn, passing the 4640`display-buffer-fallback-action' (in order). Then it calls each
4641function in the combined function list in turn, passing the
4638buffer as the first argument and the combined alist as the second 4642buffer as the first argument and the combined alist as the second
4639argument, until one of the functions returns non-nil. 4643argument, until one of the functions returns non-nil.
4640 4644