aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-02-08 10:27:24 +0000
committerSimon Marshall1996-02-08 10:27:24 +0000
commit43c5ac8cbeefe03996401ea7d472e040ca0e62f2 (patch)
tree988435af31f6071aac27dc30d067ffe19ecd089d
parenta465832f096eda14c0b403557d3754fd50c6ea5c (diff)
downloademacs-43c5ac8cbeefe03996401ea7d472e040ca0e62f2.tar.gz
emacs-43c5ac8cbeefe03996401ea7d472e040ca0e62f2.zip
Cope if get-buffer-window-list is given a buffer name (like get-buffer-window does).
-rw-r--r--lisp/subr.el2
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.
703See `get-buffer-window' for the meaning of FRAME." 703See `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)))))