]> git.eshelyaron.com Git - emacs.git/commitdiff
(posn-object-x-y): New defun.
authorKim F. Storm <storm@cua.dk>
Thu, 27 Nov 2003 21:28:01 +0000 (21:28 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 27 Nov 2003 21:28:01 +0000 (21:28 +0000)
lisp/subr.el

index 9dc6c2ba6eccb6b9dd9ddb5ffd392608da84806b..dba7331f98c210244f0d0434a7e3d9acf1223d24 100644 (file)
@@ -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))
+
 \f
 ;;;; Obsolescent names for functions.