emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 560a6c3: ; Fix my last commit


From: Stefan Kangas
Subject: master 560a6c3: ; Fix my last commit
Date: Sat, 20 Nov 2021 07:18:38 -0500 (EST)

branch: master
commit 560a6c35cb274af6b79f89eddbdbb2fd6c00e2b0
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    ; Fix my last commit
    
    * lisp/play/animate.el (animate-string): Ensure the delay is always a
    float.
---
 lisp/play/animate.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/play/animate.el b/lisp/play/animate.el
index f3c77b3..54ee9dc 100644
--- a/lisp/play/animate.el
+++ b/lisp/play/animate.el
@@ -138,7 +138,7 @@ in the current window."
        ;; Make sure buffer is displayed starting at the beginning.
        (set-window-start nil 1)
        ;; Display it, and wait just a little while.
-        (sit-for (/ animate-total-added-delay (max animate-n-steps 1)))
+        (sit-for (/ (float animate-total-added-delay) (max animate-n-steps 1)))
        ;; Now undo the changes we made in the buffer.
        (setq list-to-undo buffer-undo-list)
        (while list-to-undo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]