# HG changeset patch # User Richard M. Stallman # Date 796461278 0 # Node ID 8904c26c2182c8d0ee60ee4c5132935eadfd4710 # Parent 117b32676686f5277956c697fbd0f200ff0d6c06 (minibuffer-window-active-p): Use active-minibuffer-window. diff -r 117b32676686 -r 8904c26c2182 lisp/window.el --- a/lisp/window.el Tue Mar 28 23:33:32 1995 +0000 +++ b/lisp/window.el Wed Mar 29 07:14:38 1995 +0000 @@ -74,17 +74,7 @@ (defun minibuffer-window-active-p (window) "Return t if WINDOW (a minibuffer window) is now active." - ;; nil nil means include WINDOW's frame - ;; and other frames using WINDOW as minibuffer, - ;; and include minibuffer if active. - (let ((prev (previous-window window nil nil))) - ;; If PREV equals WINDOW, WINDOW must be on a minibuffer-only frame - ;; and it's not currently being used. So return nil. - (and (not (eq window prev)) - (let ((should-be-same (next-window prev nil nil))) - ;; If next-window doesn't reverse previous-window, - ;; WINDOW must be outside the cycle specified by nil nil. - (eq should-be-same window))))) + (eq window (active-minibuffer-window))) (defun count-windows (&optional minibuf) "Returns the number of visible windows.