# HG changeset patch # User Chong Yidong # Date 1291509798 18000 # Node ID 0d5ab24d31dfcfcd6d98017a08b2618e37f442f9 # Parent 5c6c43239aa463a016bcc54c7a91ab4ea307549e Doc fix for posn-* functions (Bug#7471). * lisp/subr.el (posn-x-y, posn-object-x-y, posn-object-width-height): Doc fix (Bug#7471). diff -r 5c6c43239aa4 -r 0d5ab24d31df lisp/ChangeLog --- a/lisp/ChangeLog Sat Dec 04 19:32:32 2010 -0500 +++ b/lisp/ChangeLog Sat Dec 04 19:43:18 2010 -0500 @@ -1,3 +1,8 @@ +2010-12-05 Chong Yidong + + * subr.el (posn-x-y, posn-object-x-y, posn-object-width-height): + Doc fix (Bug#7471). + 2010-12-04 Martin Rudalics * dired.el (dired-pop-to-buffer): Bind pop-up-frames to nil diff -r 5c6c43239aa4 -r 0d5ab24d31df lisp/subr.el --- a/lisp/subr.el Sat Dec 04 19:32:32 2010 -0500 +++ b/lisp/subr.el Sat Dec 04 19:43:18 2010 -0500 @@ -916,8 +916,9 @@ (defsubst posn-x-y (position) "Return the x and y coordinates in POSITION. -POSITION should be a list of the form returned by the `event-start' -and `event-end' functions." +The return value has the form (X . Y), where X and Y are given in +pixels. POSITION should be a list of the form returned by +`event-start' and `event-end'." (nth 2 position)) (declare-function scroll-bar-scale "scroll-bar" (num-denom whole)) @@ -997,14 +998,15 @@ (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." +The return value has the form (DX . DY), where DX and DY are +given in pixels. POSITION should be a list of the form returned +by `event-start' and `event-end'." (nth 8 position)) (defsubst posn-object-width-height (position) "Return the pixel width and height of the object of POSITION. -POSITION should be a list of the form returned by the `event-start' -and `event-end' functions." +The return value has the form (WIDTH . HEIGHT). POSITION should +be a list of the form returned by `event-start' and `event-end'." (nth 9 position))