changeset 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 a0409e91c835
children 5098a5df98db
files lisp/subr.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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.