Function: mouse-autoselect-window-start
mouse-autoselect-window-start is a byte-compiled function defined in
window.el.gz.
Signature
(mouse-autoselect-window-start MOUSE-POSITION &optional WINDOW SUSPEND)
Documentation
Start delayed window autoselection.
MOUSE-POSITION is the last position where the mouse was seen as returned
by mouse-position. Optional argument WINDOW non-nil denotes the
window where the mouse was seen. Optional argument SUSPEND non-nil
means suspend autoselection.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun mouse-autoselect-window-start (mouse-position &optional window suspend)
"Start delayed window autoselection.
MOUSE-POSITION is the last position where the mouse was seen as returned
by `mouse-position'. Optional argument WINDOW non-nil denotes the
window where the mouse was seen. Optional argument SUSPEND non-nil
means suspend autoselection."
;; Record values for MOUSE-POSITION, WINDOW, and SUSPEND.
(setq mouse-autoselect-window-position mouse-position)
(when window (setq mouse-autoselect-window-window window))
(setq mouse-autoselect-window-state (when suspend 'suspend))
;; Install timer which runs `mouse-autoselect-window-select' after
;; `mouse-autoselect-window' seconds.
(setq mouse-autoselect-window-timer
(run-at-time
(abs mouse-autoselect-window) nil 'mouse-autoselect-window-select)))