aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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."
84 (cons walk-windows-current walk-windows-already-seen)) 84 (cons walk-windows-current walk-windows-already-seen))
85 (funcall proc walk-windows-current))))) 85 (funcall proc walk-windows-current)))))
86 86
87(defun some-window (predicate &optional minibuf all-frames default) 87(defun get-window-with-predicate (predicate &optional minibuf
88 all-frames default)
88 "Return a window satisfying PREDICATE. 89 "Return a window satisfying PREDICATE.
89 90
90This function cycles through all visible windows using `walk-windows', 91This function cycles through all visible windows using `walk-windows',
@@ -119,6 +120,8 @@ Anything else means restrict to the selected frame."
119 minibuf all-frames) 120 minibuf all-frames)
120 default)) 121 default))
121 122
123(defalias 'some-window 'get-window-with-predicate)
124
122(defun minibuffer-window-active-p (window) 125(defun minibuffer-window-active-p (window)
123 "Return t if WINDOW (a minibuffer window) is now active." 126 "Return t if WINDOW (a minibuffer window) is now active."
124 (eq window (active-minibuffer-window))) 127 (eq window (active-minibuffer-window)))