# HG changeset patch # User Glenn Morris # Date 1255749353 0 # Node ID 8606d80288767a576ee53cc077cf0848ab5b44c6 # Parent c97e346c34f6fbf5a8024f6749e5174f031e1683 (foldout-mouse-swallow-events): Replace obsolete form of sit-for. diff -r c97e346c34f6 -r 8606d8028876 lisp/ChangeLog --- a/lisp/ChangeLog Sat Oct 17 03:15:13 2009 +0000 +++ b/lisp/ChangeLog Sat Oct 17 03:15:53 2009 +0000 @@ -1,5 +1,6 @@ 2009-10-17 Glenn Morris + * 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) diff -r c97e346c34f6 -r 8606d8028876 lisp/foldout.el --- a/lisp/foldout.el Sat Oct 17 03:15:13 2009 +0000 +++ b/lisp/foldout.el Sat Oct 17 03:15:53 2009 +0000 @@ -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 ;; Maintainer: FSF @@ -495,7 +495,7 @@ "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 "")))