Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4f3d7805
Commit
4f3d7805
authored
Sep 07, 2001
by
Gerd Moellmann
Browse files
(bg-window-from-x-y): Use
get-window-with-predicate.
parent
b4ae6633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/term/bg-mouse.el
lisp/term/bg-mouse.el
+3
-2
No files found.
lisp/term/bg-mouse.el
View file @
4f3d7805
;;; 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 @@ X and Y are 0-based character positions in the window."
(
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment