aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-10-14 19:07:00 +0200
committerEli Zaretskii2012-10-14 19:07:00 +0200
commit7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad (patch)
tree01f9c8b1014bba96e0e1f3f56e3c0dd0027c751c
parent9fe32d61c5655878f877522ac4bcc251d092f732 (diff)
downloademacs-7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad.tar.gz
emacs-7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad.zip
lisp/window.el (display-buffer): Doc fix.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/window.el22
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7393bbc2845..a14217358dc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12012-10-14 Eli Zaretskii <eliz@gnu.org> 12012-10-14 Eli Zaretskii <eliz@gnu.org>
2 2
3 * window.el (display-buffer): Doc fix.
4
3 * progmodes/compile.el (compilation-error-regexp-alist-alist): 5 * progmodes/compile.el (compilation-error-regexp-alist-alist):
4 Adjust the msft regexp to the output of Studio 2010, and move msft 6 Adjust the msft regexp to the output of Studio 2010, and move msft
5 before edg-1. See the discussion on emacs-devel, 7 before edg-1. See the discussion on emacs-devel,
diff --git a/lisp/window.el b/lisp/window.el
index b033f9c26e3..a17e0adcdfe 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5361,8 +5361,16 @@ BUFFER-OR-NAME must be a buffer or the name of an existing
5361buffer. Return the window chosen for displaying BUFFER-OR-NAME, 5361buffer. Return the window chosen for displaying BUFFER-OR-NAME,
5362or nil if no such window is found. 5362or nil if no such window is found.
5363 5363
5364Optional argument ACTION should have the form (FUNCTION . ALIST). 5364Optional argument ACTION, if non-nil, should specify a display
5365FUNCTION is either a function or a list of functions. 5365action. Its form is described below.
5366
5367Optional argument FRAME, if non-nil, acts like an additional
5368ALIST entry (reusable-frames . FRAME) to the action list of ACTION,
5369specifying the frame(s) to search for a window that is already
5370displaying the buffer. See `display-buffer-reuse-window'
5371
5372If ACTION is non-nil, it should have the form (FUNCTION . ALIST),
5373where FUNCTION is either a function or a list of functions, and
5366ALIST is an arbitrary association list (alist). 5374ALIST is an arbitrary association list (alist).
5367 5375
5368Each such FUNCTION should accept two arguments: the buffer to 5376Each such FUNCTION should accept two arguments: the buffer to
@@ -5379,6 +5387,9 @@ function in the combined function list in turn, passing the
5379buffer as the first argument and the combined alist as the second 5387buffer as the first argument and the combined alist as the second
5380argument, until one of the functions returns non-nil. 5388argument, until one of the functions returns non-nil.
5381 5389
5390If ACTION is nil, the function list and the alist are built using
5391only the other variables mentioned above.
5392
5382Available action functions include: 5393Available action functions include:
5383 `display-buffer-same-window' 5394 `display-buffer-same-window'
5384 `display-buffer-reuse-window' 5395 `display-buffer-reuse-window'
@@ -5407,12 +5418,7 @@ The ACTION argument to `display-buffer' can also have a non-nil
5407and non-list value. This means to display the buffer in a window 5418and non-list value. This means to display the buffer in a window
5408other than the selected one, even if it is already displayed in 5419other than the selected one, even if it is already displayed in
5409the selected window. If called interactively with a prefix 5420the selected window. If called interactively with a prefix
5410argument, ACTION is t. 5421argument, ACTION is t."
5411
5412Optional argument FRAME, if non-nil, acts like an additional
5413ALIST entry (reusable-frames . FRAME), specifying the frame(s) to
5414search for a window that is already displaying the buffer. See
5415`display-buffer-reuse-window'."
5416 (interactive (list (read-buffer "Display buffer: " (other-buffer)) 5422 (interactive (list (read-buffer "Display buffer: " (other-buffer))
5417 (if current-prefix-arg t))) 5423 (if current-prefix-arg t)))
5418 (let ((buffer (if (bufferp buffer-or-name) 5424 (let ((buffer (if (bufferp buffer-or-name)