From b701ac49455b4f8495bc639a7af1312a0266ae05 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 30 May 2014 22:13:13 -0400 Subject: [PATCH] * lisp/subr.el (sit-for): Add comment with a short history. --- lisp/subr.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/subr.el b/lisp/subr.el index 0a95cebd1a6..4fba469868f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2151,6 +2151,10 @@ where the optional arg MILLISECONDS specifies an additional wait period, in milliseconds; this was useful when Emacs was built without floating point support." (declare (advertised-calling-convention (seconds &optional nodisp) "22.1")) + ;; This used to be implemented in C until the following discussion: + ;; http://lists.gnu.org/archive/html/emacs-devel/2006-07/msg00401.html + ;; Then it was moved to C using an implementation based on an idle timer, + ;; which was then replaced by the use of read-event. (if (numberp nodisp) (setq seconds (+ seconds (* 1e-3 nodisp)) nodisp obsolete) -- 2.11.4.GIT