Function: track-mouse
track-mouse is a macro defined in subr.el.gz.
Signature
(track-mouse &rest BODY)
Documentation
Evaluate BODY with mouse movement events enabled.
Within a track-mouse(var)/track-mouse(fun) form, mouse motion generates input events that
you can read with read-event.
Normally, mouse motion is ignored.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
;;;; Lisp macros to do various things temporarily.
(defmacro track-mouse (&rest body)
"Evaluate BODY with mouse movement events enabled.
Within a `track-mouse' form, mouse motion generates input events that
you can read with `read-event'.
Normally, mouse motion is ignored."
(declare (debug (def-body)) (indent 0))
`(internal--track-mouse (lambda () ,@body)))