]> code.delx.au - gnu-emacs/commitdiff
(gs-load-image): Replace obsolete forms of sit-for, sleep-for.
authorGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:15:13 +0000 (03:15 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:15:13 +0000 (03:15 +0000)
lisp/ChangeLog
lisp/gs.el

index 44c4853f061fb119347d10db38a3d5db2d5e6ff0..d70004376150241424fed07642b1ed2730bd305a 100644 (file)
@@ -1,5 +1,7 @@
 2009-10-17  Glenn Morris  <rgm@gnu.org>
 
+       * gs.el (gs-load-image): Replace obsolete forms of sit-for, sleep-for.
+
        * dired.el (dired-ls-F-marks-symlinks, dired-keep-marker-rename)
        (dired-keep-marker-copy, dired-keep-marker-hardlink)
        (dired-keep-marker-symlink, dired-dwim-target)
index 69405d75e788f5016cfd666ad13b4df03bd1e622..7461cd563ab3c9e1e0f735b60b1d2beec8bd5940 100644 (file)
@@ -1,7 +1,7 @@
 ;;; gs.el --- interface to Ghostscript
 
-;; Copyright (C) 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-;;   2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+;;   200 Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 ;; Keywords: internal
@@ -180,8 +180,8 @@ the form \"WINDOW-ID PIXMAP-ID\".  Value is non-nil if successful."
                ;; out even more sluggish.
                ;; (get-buffer-process "*GS*")
                (not (zerop timeout)))
-         (unless (sit-for 0 100 t)
-           (sleep-for 0 50))
+         (unless (sit-for 0.1 t)
+           (sleep-for 0.05))
          (setq timeout (1- timeout)))
 
        ;; No use waiting longer.  We might want to try killing off