diff options
| author | Eli Zaretskii | 2015-08-21 15:55:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-21 15:55:05 +0300 |
| commit | 2f5e8090824d7d1ca8894c12a1e51e2ad340c012 (patch) | |
| tree | 80ce331b83f2fb16018b38305663d6f657cb8519 | |
| parent | eb022c1e742eb56cf442c1e649cce3e45c18aa29 (diff) | |
| download | emacs-2f5e8090824d7d1ca8894c12a1e51e2ad340c012.tar.gz emacs-2f5e8090824d7d1ca8894c12a1e51e2ad340c012.zip | |
Clarify documentation of 'get-buffer-window-list'
* doc/lispref/windows.texi (Buffers and Windows): Mention that the
current window, if relevant, will be the first in the list
returned by 'get-buffer-window-list'.
* lisp/window.el (get-buffer-window-list): Doc fix. (Bug#21305)
| -rw-r--r-- | doc/lispref/windows.texi | 4 | ||||
| -rw-r--r-- | lisp/window.el | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index f809678f5c4..9cd59d70505 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -1984,7 +1984,9 @@ to eliminate this discrepancy. | |||
| 1984 | This function returns a list of all windows currently displaying | 1984 | This function returns a list of all windows currently displaying |
| 1985 | @var{buffer-or-name}. @var{buffer-or-name} should be a buffer or the | 1985 | @var{buffer-or-name}. @var{buffer-or-name} should be a buffer or the |
| 1986 | name of an existing buffer. If omitted or @code{nil}, it defaults to | 1986 | name of an existing buffer. If omitted or @code{nil}, it defaults to |
| 1987 | the current buffer. | 1987 | the current buffer. If the currently selected window displays |
| 1988 | @var{buffer-or-name}, it will be the first in the list returned by | ||
| 1989 | this function. | ||
| 1988 | 1990 | ||
| 1989 | The arguments @var{minibuf} and @var{all-frames} have the same | 1991 | The arguments @var{minibuf} and @var{all-frames} have the same |
| 1990 | meanings as in the function @code{next-window} (@pxref{Cyclic Window | 1992 | meanings as in the function @code{next-window} (@pxref{Cyclic Window |
diff --git a/lisp/window.el b/lisp/window.el index c783b0d5b10..d39c7018601 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2299,8 +2299,8 @@ selected frame and no others." | |||
| 2299 | (defun get-buffer-window-list (&optional buffer-or-name minibuf all-frames) | 2299 | (defun get-buffer-window-list (&optional buffer-or-name minibuf all-frames) |
| 2300 | "Return list of all windows displaying BUFFER-OR-NAME, or nil if none. | 2300 | "Return list of all windows displaying BUFFER-OR-NAME, or nil if none. |
| 2301 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer | 2301 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer |
| 2302 | and defaults to the current buffer. Windows are scanned starting | 2302 | and defaults to the current buffer. If the selected window displays |
| 2303 | with the selected window. | 2303 | BUFFER-OR-NAME, it will be the first in the resulting list. |
| 2304 | 2304 | ||
| 2305 | MINIBUF t means include the minibuffer window even if the | 2305 | MINIBUF t means include the minibuffer window even if the |
| 2306 | minibuffer is not active. MINIBUF nil or omitted means include | 2306 | minibuffer is not active. MINIBUF nil or omitted means include |