Function: event-end

event-end is a byte-compiled function defined in subr.el.gz.

Signature

(event-end EVENT)

Documentation

Return the ending position of EVENT.

EVENT should be a click, drag, touch screen, or key press event.

See event-start for a description of the value returned.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun event-end (event)
  "Return the ending position of EVENT.
EVENT should be a click, drag, touch screen, or key press event.

See `event-start' for a description of the value returned."
  (declare (side-effect-free t))
  (if (and (consp event)
           (or (eq (car event) 'touchscreen-begin)
               (eq (car event) 'touchscreen-end)))
      (cdadr event)
    (or (and (consp event)
             (not (eq (car event) 'touchscreen-update))
             (nth (if (consp (nth 2 event)) 2 1) event))
        (event--posn-at-point))))