diff options
| author | Kim F. Storm | 2003-11-27 21:28:01 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-11-27 21:28:01 +0000 |
| commit | e08f9a0df92ee0d3cbb00126b39cc648553e3e7f (patch) | |
| tree | 48b3fdd2488b9d47ddd900bc9a857474babf2c20 | |
| parent | f65536faefa52fcd0da5f9fb77e3bd31ce5cefc6 (diff) | |
| download | emacs-e08f9a0df92ee0d3cbb00126b39cc648553e3e7f.tar.gz emacs-e08f9a0df92ee0d3cbb00126b39cc648553e3e7f.zip | |
(posn-object-x-y): New defun.
| -rw-r--r-- | lisp/subr.el | 6 |
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' | |||
| 757 | and `event-end' functions." | 757 | and `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. | ||
| 762 | POSITION should be a list of the form returned by the `event-start' | ||
| 763 | and `event-end' functions." | ||
| 764 | (nth 7 position)) | ||
| 765 | |||
| 760 | 766 | ||
| 761 | ;;;; Obsolescent names for functions. | 767 | ;;;; Obsolescent names for functions. |
| 762 | 768 | ||