aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-07 11:29:48 +0000
committerGerd Moellmann2001-09-07 11:29:48 +0000
commitd4d986f24eef4ce19096fe94be88e9a9d61bd584 (patch)
tree32b27edf4bafa49b2756146eab8223a9645d75ae
parent78999117cd9ce7db469ccab4d36003c1263885ba (diff)
downloademacs-d4d986f24eef4ce19096fe94be88e9a9d61bd584.tar.gz
emacs-d4d986f24eef4ce19096fe94be88e9a9d61bd584.zip
(get-window-with-predicate): Renamed from some-window.
(some-window): Make it an alias.
-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)))