mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
Cope if get-buffer-window-list is given a buffer name (like get-buffer-window does).
This commit is contained in:
parent
a465832f09
commit
43c5ac8cbe
1 changed files with 1 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ On other systems, this variable is normally always nil.")
|
|||
(defun get-buffer-window-list (buffer &optional frame)
|
||||
"Return windows currently displaying BUFFER, or nil if none.
|
||||
See `get-buffer-window' for the meaning of FRAME."
|
||||
(let (windows)
|
||||
(let ((buffer (if (bufferp buffer) buffer (get-buffer buffer))) windows)
|
||||
(walk-windows (function (lambda (window)
|
||||
(if (eq (window-buffer window) buffer)
|
||||
(setq windows (cons window windows)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue