]> git.eshelyaron.com Git - emacs.git/commitdiff
(foldout-mouse-swallow-events): Replace obsolete form of sit-for.
authorGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:15:53 +0000 (03:15 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:15:53 +0000 (03:15 +0000)
lisp/ChangeLog
lisp/foldout.el

index d70004376150241424fed07642b1ed2730bd305a..bdec771f6e35925b275fec600ddf94a51b58b147 100644 (file)
@@ -1,5 +1,6 @@
 2009-10-17  Glenn Morris  <rgm@gnu.org>
 
+       * foldout.el (foldout-mouse-swallow-events):
        * gs.el (gs-load-image): Replace obsolete forms of sit-for, sleep-for.
 
        * dired.el (dired-ls-F-marks-symlinks, dired-keep-marker-rename)
index e09a693c63168742c5c0d70fcf6e57d01399efd7..f56d0d420678771858257412a6a0086ba329a8bb 100644 (file)
@@ -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,
+;;   200 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 "")))