aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/subr.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 9dc6c2ba6e..dba7331f98 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -757,6 +757,12 @@ POSITION should be a list of the form returned by the `event-start'
and `event-end' functions."
(nth 4 position))
+(defsubst posn-object-x-y (position)
+ "Return the x and y coordinates relative to the object of POSITION.
+POSITION should be a list of the form returned by the `event-start'
+and `event-end' functions."
+ (nth 7 position))
+
;;;; Obsolescent names for functions.