Function: event-click-count

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

Signature

(event-click-count EVENT)

Documentation

Return the multi-click count of EVENT, a click or drag event.

The return value is a positive integer.

View in manual

Probably introduced at or before Emacs version 19.18.

Aliases

viper-event-click-count (obsolete since 28.1)

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defsubst event-click-count (event)
  "Return the multi-click count of EVENT, a click or drag event.
The return value is a positive integer."
  (declare (side-effect-free t))
  (if (and (consp event) (integerp (nth 2 event))) (nth 2 event) 1))