diff lisp/subr.el @ 53181:8337e648c2b3

(posn-object-x-y): New defun.
author Kim F. Storm <storm@cua.dk>
date Thu, 27 Nov 2003 21:28:01 +0000
parents 5f50db6e04c6
children 61703d3393d6
line wrap: on
line diff
--- a/lisp/subr.el	Thu Nov 27 21:17:23 2003 +0000
+++ b/lisp/subr.el	Thu Nov 27 21:28:01 2003 +0000
@@ -757,6 +757,12 @@
 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.