[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/window.el,v
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/window.el,v |
Date: |
Sat, 25 Oct 2008 08:07:43 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Martin Rudalics <m061211> 08/10/25 08:07:43
Index: window.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/window.el,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -b -r1.157 -r1.158
--- window.el 19 Oct 2008 13:56:26 -0000 1.157
+++ window.el 25 Oct 2008 08:07:42 -0000 1.158
@@ -193,11 +193,16 @@
(defalias 'some-window 'get-window-with-predicate)
;; This should probably be written in C (i.e., without using `walk-windows').
-(defun get-buffer-window-list (buffer &optional minibuf all-frames)
- "Return list of all windows displaying BUFFER, or nil if none.
-BUFFER can be a buffer or a buffer name.
+(defun get-buffer-window-list (&optional buffer-or-name minibuf all-frames)
+ "Return list of all windows displaying BUFFER-OR-NAME, or nil if none.
+BUFFER-OR-NAME may be a buffer or the name of an existing buffer
+and defaults to nil.
See `walk-windows' for the meaning of MINIBUF and ALL-FRAMES."
- (let ((buffer (if (bufferp buffer) buffer (get-buffer buffer))) windows)
+ (let ((buffer (cond
+ ((not buffer-or-name) (current-buffer))
+ ((bufferp buffer-or-name) buffer-or-name)
+ (t (get-buffer buffer-or-name))))
+ windows)
(walk-windows (function (lambda (window)
(if (eq (window-buffer window) buffer)
(setq windows (cons window windows)))))
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/03
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/09
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/10
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/19
- [Emacs-diffs] Changes to emacs/lisp/window.el,v,
Martin Rudalics <=
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/30
- [Emacs-diffs] Changes to emacs/lisp/window.el,v, Martin Rudalics, 2008/10/31