summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-09-07 11:29:48 +0000
committerGerd Moellmann <gerd@gnu.org>2001-09-07 11:29:48 +0000
commit443d3c497d7ae6b1892258eb66ed28718d3ca54c (patch)
treeaab938a726f2fbd633b9fa059cfb0427dafa732f /lisp/window.el
parentb374f8397fc285699ecc4786bc410e64929e6dd8 (diff)
downloademacs-443d3c497d7ae6b1892258eb66ed28718d3ca54c.tar.gz
(get-window-with-predicate): Renamed from some-window.
(some-window): Make it an alias.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 19c3fa71c30..4d97117a4eb 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -84,7 +84,8 @@ Anything else means restrict to the selected frame."
(cons walk-windows-current walk-windows-already-seen))
(funcall proc walk-windows-current)))))
-(defun some-window (predicate &optional minibuf all-frames default)
+(defun get-window-with-predicate (predicate &optional minibuf
+ all-frames default)
"Return a window satisfying PREDICATE.
This function cycles through all visible windows using `walk-windows',
@@ -119,6 +120,8 @@ Anything else means restrict to the selected frame."
minibuf all-frames)
default))
+(defalias 'some-window 'get-window-with-predicate)
+
(defun minibuffer-window-active-p (window)
"Return t if WINDOW (a minibuffer window) is now active."
(eq window (active-minibuffer-window)))