Function: mouse-double-click-time

mouse-double-click-time is a byte-compiled function defined in mouse.el.gz.

Signature

(mouse-double-click-time)

Documentation

Return a number for double-click-time.

In contrast to using the double-click-time variable directly, which could be set to nil or t, this function is guaranteed to always return a positive integer or zero.

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun mouse-double-click-time ()
  "Return a number for `double-click-time'.
In contrast to using the `double-click-time' variable directly,
which could be set to nil or t, this function is guaranteed to
always return a positive integer or zero."
  (let ((ct double-click-time))
   (cond ((eq ct t) 10000) ; arbitrary number useful for sit-for
         ((eq ct nil) 0)
         ((and (numberp ct) (> ct 0)) ct)
         (t 0))))