diff options
| author | Eli Zaretskii | 2012-10-14 19:07:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-14 19:07:00 +0200 |
| commit | 7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad (patch) | |
| tree | 01f9c8b1014bba96e0e1f3f56e3c0dd0027c751c | |
| parent | 9fe32d61c5655878f877522ac4bcc251d092f732 (diff) | |
| download | emacs-7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad.tar.gz emacs-7b9abf24ee3fa39a2f0dc2cf186737216cffc6ad.zip | |
lisp/window.el (display-buffer): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/window.el | 22 |
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 @@ | |||
| 1 | 2012-10-14 Eli Zaretskii <eliz@gnu.org> | 1 | 2012-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 | |||
| 5361 | buffer. Return the window chosen for displaying BUFFER-OR-NAME, | 5361 | buffer. Return the window chosen for displaying BUFFER-OR-NAME, |
| 5362 | or nil if no such window is found. | 5362 | or nil if no such window is found. |
| 5363 | 5363 | ||
| 5364 | Optional argument ACTION should have the form (FUNCTION . ALIST). | 5364 | Optional argument ACTION, if non-nil, should specify a display |
| 5365 | FUNCTION is either a function or a list of functions. | 5365 | action. Its form is described below. |
| 5366 | |||
| 5367 | Optional argument FRAME, if non-nil, acts like an additional | ||
| 5368 | ALIST entry (reusable-frames . FRAME) to the action list of ACTION, | ||
| 5369 | specifying the frame(s) to search for a window that is already | ||
| 5370 | displaying the buffer. See `display-buffer-reuse-window' | ||
| 5371 | |||
| 5372 | If ACTION is non-nil, it should have the form (FUNCTION . ALIST), | ||
| 5373 | where FUNCTION is either a function or a list of functions, and | ||
| 5366 | ALIST is an arbitrary association list (alist). | 5374 | ALIST is an arbitrary association list (alist). |
| 5367 | 5375 | ||
| 5368 | Each such FUNCTION should accept two arguments: the buffer to | 5376 | Each such FUNCTION should accept two arguments: the buffer to |
| @@ -5379,6 +5387,9 @@ function in the combined function list in turn, passing the | |||
| 5379 | buffer as the first argument and the combined alist as the second | 5387 | buffer as the first argument and the combined alist as the second |
| 5380 | argument, until one of the functions returns non-nil. | 5388 | argument, until one of the functions returns non-nil. |
| 5381 | 5389 | ||
| 5390 | If ACTION is nil, the function list and the alist are built using | ||
| 5391 | only the other variables mentioned above. | ||
| 5392 | |||
| 5382 | Available action functions include: | 5393 | Available 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 | |||
| 5407 | and non-list value. This means to display the buffer in a window | 5418 | and non-list value. This means to display the buffer in a window |
| 5408 | other than the selected one, even if it is already displayed in | 5419 | other than the selected one, even if it is already displayed in |
| 5409 | the selected window. If called interactively with a prefix | 5420 | the selected window. If called interactively with a prefix |
| 5410 | argument, ACTION is t. | 5421 | argument, ACTION is t." |
| 5411 | |||
| 5412 | Optional argument FRAME, if non-nil, acts like an additional | ||
| 5413 | ALIST entry (reusable-frames . FRAME), specifying the frame(s) to | ||
| 5414 | search 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) |