aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-11-27 21:28:01 +0000
committerKim F. Storm2003-11-27 21:28:01 +0000
commite08f9a0df92ee0d3cbb00126b39cc648553e3e7f (patch)
tree48b3fdd2488b9d47ddd900bc9a857474babf2c20
parentf65536faefa52fcd0da5f9fb77e3bd31ce5cefc6 (diff)
downloademacs-e08f9a0df92ee0d3cbb00126b39cc648553e3e7f.tar.gz
emacs-e08f9a0df92ee0d3cbb00126b39cc648553e3e7f.zip
(posn-object-x-y): New defun.
-rw-r--r--lisp/subr.el6
1 files changed, 6 insertions, 0 deletions
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'
757and `event-end' functions." 757and `event-end' functions."
758 (nth 4 position)) 758 (nth 4 position))
759 759
760(defsubst posn-object-x-y (position)
761 "Return the x and y coordinates relative to the object of POSITION.
762POSITION should be a list of the form returned by the `event-start'
763and `event-end' functions."
764 (nth 7 position))
765
760 766
761;;;; Obsolescent names for functions. 767;;;; Obsolescent names for functions.
762 768