bongo-patches
[Top][All Lists]
Advanced

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

[bongo-patches] Don't skip the first track with bongo-reset-playlist


From: Daniel Jensen
Subject: [bongo-patches] Don't skip the first track with bongo-reset-playlist
Date: Sat, 24 Mar 2007 16:12:58 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

The `bongo-reset-playlist' command skipped the first track in the
playlist. This patch fixes the bug.

diff -Naur bongo-old/bongo.el bongo-new/bongo.el
--- bongo-old/bongo.el  2007-03-19 08:57:32.000000000 +0100
+++ bongo-new/bongo.el  2007-03-24 16:02:41.000000000 +0100
@@ -7847,10 +7847,10 @@
           (line-move-ignore-invisible nil))
       (save-excursion
         (goto-char (point-min))
-        (bongo-snap-to-object-line)
-        (while (bongo-next-object-line 'no-error)
+        (while (bongo-snap-to-object-line 'no-error)
           (bongo-line-remove-property 'bongo-played)
-          (bongo-redisplay-line))))))
+          (bongo-redisplay-line)
+          (goto-char (bongo-point-after-object)))))))
 
 (defun bongo-rename-line ()
   "Interactively rename the track at point.

reply via email to

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