1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(sup-pos-to-window): Use

get-window-with-predicate.
This commit is contained in:
Gerd Moellmann 2001-09-07 11:34:17 +00:00
parent 4f3d7805a2
commit 75377eba1c

View 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