From: Kim F. Storm Date: Thu, 27 Nov 2003 21:28:01 +0000 (+0000) Subject: (posn-object-x-y): New defun. X-Git-Tag: ttn-vms-21-2-B4~8257 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e08f9a0df92ee0d3cbb00126b39cc648553e3e7f;p=emacs.git (posn-object-x-y): New defun. --- diff --git a/lisp/subr.el b/lisp/subr.el index 9dc6c2ba6ec..dba7331f98c 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.