changeset 39174:f05289e60329

(bg-window-from-x-y): Use get-window-with-predicate.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 07 Sep 2001 11:33:32 +0000
parents afcda06e306e
children 8558951ba736
files lisp/term/bg-mouse.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <jr@bbn-unix.arpa>
 ;;	Stephen Gildea <gildea@bbn.com>
@@ -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)