Function: posn-x-y

posn-x-y is a byte-compiled function defined in subr.el.gz.

Signature

(posn-x-y POSITION)

Documentation

Return the x and y coordinates in POSITION.

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.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defsubst posn-x-y (position)
  "Return the x and y coordinates in POSITION.
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'."
  (declare (side-effect-free t))
  (nth 2 position))