summaryrefslogtreecommitdiff
path: root/lisp/foldout.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-10-17 03:15:53 +0000
committerGlenn Morris <rgm@gnu.org>2009-10-17 03:15:53 +0000
commit3ee0b4774bd5cc9faec1191c863fcfcc6b5fbeeb (patch)
treec27ccd880949becdc9fbd8bab87828f86c670219 /lisp/foldout.el
parentcec05144408bf0307d90263077f704cb5d832ed0 (diff)
downloademacs-3ee0b4774bd5cc9faec1191c863fcfcc6b5fbeeb.tar.gz
(foldout-mouse-swallow-events): Replace obsolete form of sit-for.
Diffstat (limited to 'lisp/foldout.el')
-rw-r--r--lisp/foldout.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/foldout.el b/lisp/foldout.el
index e09a693c631..f56d0d42067 100644
--- a/lisp/foldout.el
+++ b/lisp/foldout.el
@@ -1,7 +1,7 @@
;;; foldout.el --- folding extensions for outline-mode and outline-minor-mode
-;; Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005,
-;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+;; 2009 Free Software Foundation, Inc.
;; Author: Kevin Broadey <KevinB@bartley.demon.co.uk>
;; Maintainer: FSF
@@ -495,7 +495,7 @@ What happens depends on the number of mouse clicks:-
"Swallow intervening mouse events so we only get the final click-count.
Signal an error if the final event isn't the same type as the first one."
(let ((initial-event-type (event-basic-type event)))
- (while (null (sit-for 0 double-click-time 'nodisplay))
+ (while (null (sit-for (/ double-click-time 1000.0) 'nodisplay))
(setq event (read-event)))
(or (eq initial-event-type (event-basic-type event))
(error "")))