]> git.eshelyaron.com Git - emacs.git/commitdiff
(sup-pos-to-window): Use
authorGerd Moellmann <gerd@gnu.org>
Fri, 7 Sep 2001 11:34:17 +0000 (11:34 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 7 Sep 2001 11:34:17 +0000 (11:34 +0000)
get-window-with-predicate.

lisp/term/sup-mouse.el

index 849569e1847baf426542a4111526d2987e757638..d48ad3d8581d78bb7d0bbfb3fbf66537c64eb49c 100644 (file)
@@ -193,6 +193,7 @@ X and Y are 0-based character positions in the window."
 (defun sup-pos-to-window (x y)
   "Find window corresponding to frame coordinates.
 X and Y are 0-based character positions on the frame."
-  (some-window (lambda (w) (coordinates-in-window-p (cons x y) w))))
+  (get-window-with-predicate (lambda (w)
+                              (coordinates-in-window-p (cons x y) w))))
 
 ;;; sup-mouse.el ends here