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, or key press event.

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

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, or key press event.

See `event-start' for a description of the value returned."
  (or (and (consp event) (nth (if (consp (nth 2 event)) 2 1) event))
      ;; Use `window-point' for the case when the current buffer
      ;; is temporarily switched to some other buffer (bug#50256)
      (posn-at-point (window-point))
      (list (selected-window) (window-point) '(0 . 0) 0)))