Function: posn-area

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

Signature

(posn-area POSITION)

Documentation

Return the window area recorded in POSITION, or nil for the text area.

POSITION should be a list of the form returned by the event-start and event-end functions.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defsubst posn-area (position)
  "Return the window area recorded in POSITION, or nil for the text area.
POSITION should be a list of the form returned by the `event-start'
and `event-end' functions."
  (declare (side-effect-free t))
  (let ((area (if (consp (nth 1 position))
		  (car (nth 1 position))
		(nth 1 position))))
    (and (symbolp area) area)))