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
bb621b01
Commit
bb621b01
authored
Mar 08, 1993
by
Richard M. Stallman
Browse files
entered into RCS
parent
c581d710
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/emacs-lisp/levents.el
lisp/emacs-lisp/levents.el
+2
-2
No files found.
lisp/emacs-lisp/levents.el
View file @
bb621b01
...
...
@@ -230,7 +230,7 @@ will be returned for events which have no direct ASCII equivalent."
(
defun
event-x
(
event
)
"Returns the X position in characters of the given mouse-related event."
(
/
(
car
(
posn-col-row
(
event-end
event
)))
(
characte
r-width
(
window-frame
(
event-window
event
)))))
(
frame-cha
r-width
(
window-frame
(
event-window
event
)))))
(
defun
event-x-pixel
(
event
)
"Returns the X position in pixels of the given mouse-related event."
...
...
@@ -239,7 +239,7 @@ will be returned for events which have no direct ASCII equivalent."
(
defun
event-y
(
event
)
"Returns the Y position in characters of the given mouse-related event."
(
/
(
cdr
(
posn-col-row
(
event-end
event
)))
(
character-width
(
window-frame
(
event-window
event
)))))
(
frame-char-height
(
window-frame
(
event-window
event
)))))
(
defun
event-y-pixel
(
event
)
"Returns the Y position in pixels of the given mouse-related event."
...
...
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