diff options
Diffstat (limited to 'lisp/tooltip.el')
-rw-r--r-- | lisp/tooltip.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index cbb61efc49e..b1c69ae7368 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el @@ -201,7 +201,8 @@ This might return nil if the event did not occur over a buffer." (defun tooltip-delay () "Return the delay in seconds for the next tooltip." (if (and tooltip-hide-time - (< (- (float-time) tooltip-hide-time) tooltip-recent-seconds)) + (time-less-p (time-since tooltip-hide-time) + tooltip-recent-seconds)) tooltip-short-delay tooltip-delay)) |