bongo-patches
[Top][All Lists]
Advanced

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

[bongo-patches] Explicitly load `time-date' and use `subtract-time' inst


From: Daniel Brockman
Subject: [bongo-patches] Explicitly load `time-date' and use `subtract-time' instead of `time-subtract'
Date: Fri, 29 Dec 2006 11:21:26 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Wed Dec 27 17:11:29 CET 2006  Daniel Brockman <address@hidden>

 * Explicitly load `time-date' and use `subtract-time'
   instead of `time-subtract'.

diff -rN -u old-bongo/bongo.el new-bongo/bongo.el
--- old-bongo/bongo.el  2006-12-29 11:21:16.000000000 +0100
+++ new-bongo/bongo.el  2006-12-29 11:21:16.000000000 +0100
@@ -116,6 +116,9 @@
 ;; whether to enable Bongo Last.fm mode by default.
 (require 'lastfm-submit nil 'no-error)
 
+;; This fails to autoload on Emacs 21.
+(require 'time-date)
+
 (defgroup bongo nil
   "Buffer-oriented media player."
   :prefix "bongo-"
@@ -3633,7 +3636,7 @@
               (let ((time (bongo-player-get player 'last-seek-time)))
                 (or (null time)
                     (time-less-p (seconds-to-time delay)
-                                 (time-subtract (current-time) time)))))
+                                 (subtract-time (current-time) time)))))
       (bongo-player-put player 'elapsed-time elapsed-time))))
 
 (defun bongo-player-update-total-time (player total-time)
-- 
Daniel Brockman <address@hidden>

reply via email to

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