diff options
| -rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index df91d84efc0..71566b2250d 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -701,7 +701,7 @@ On other systems, this variable is normally always nil.") | |||
| 701 | (defun get-buffer-window-list (buffer &optional frame) | 701 | (defun get-buffer-window-list (buffer &optional frame) |
| 702 | "Return windows currently displaying BUFFER, or nil if none. | 702 | "Return windows currently displaying BUFFER, or nil if none. |
| 703 | See `get-buffer-window' for the meaning of FRAME." | 703 | See `get-buffer-window' for the meaning of FRAME." |
| 704 | (let (windows) | 704 | (let ((buffer (if (bufferp buffer) buffer (get-buffer buffer))) windows) |
| 705 | (walk-windows (function (lambda (window) | 705 | (walk-windows (function (lambda (window) |
| 706 | (if (eq (window-buffer window) buffer) | 706 | (if (eq (window-buffer window) buffer) |
| 707 | (setq windows (cons window windows))))) | 707 | (setq windows (cons window windows))))) |