# HG changeset patch # User Gerd Moellmann # Date 999862412 0 # Node ID f05289e60329d16e6be0fead29b74aa89d50a14d # Parent afcda06e306eb21cf6535bea4aa387da1f515b7d (bg-window-from-x-y): Use get-window-with-predicate. diff -r afcda06e306e -r f05289e60329 lisp/term/bg-mouse.el --- a/lisp/term/bg-mouse.el Fri Sep 07 11:32:18 2001 +0000 +++ b/lisp/term/bg-mouse.el Fri Sep 07 11:33:32 2001 +0000 @@ -1,6 +1,6 @@ ;;; bg-mouse.el --- GNU Emacs code for BBN Bitgraph mouse -;; Copyright (C) Free Software Foundation, Inc. Oct 1985. +;; Copyright (C) 2001 Free Software Foundation, Inc. Oct 1985. ;; Author: John Robinson ;; Stephen Gildea @@ -255,7 +255,8 @@ (defun bg-window-from-x-y (x y) "Find window corresponding to screen coordinates. X and Y are 0-based character positions on the screen." - (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)))) (defun bg-command-execute (bg-command) (if (commandp bg-command)