bongo-patches
[Top][All Lists]
Advanced

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

[bongo-patches] Avoid selecting the currently playing track for random p


From: Daniel Brockman
Subject: [bongo-patches] Avoid selecting the currently playing track for random playback (original patch by Anthony Chaumas-Pellet)
Date: Mon, 02 Apr 2007 01:27:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

2007-04-02  Daniel Brockman  <address@hidden>

        Avoid selecting the currently playing track for random playback
        (original patch by Anthony Chaumas-Pellet).

diff -rN -u old-bongo/bongo.el new-bongo/bongo.el
--- old-bongo/bongo.el  2007-04-02 01:27:11.000000000 +0200
+++ new-bongo/bongo.el  2007-04-02 01:27:11.000000000 +0200
@@ -6010,6 +6010,8 @@
 Inspect the line at POINT; or the one at point, if POINT is nil.
 See `bongo-randomly-playable-track-line-p' and `bongo-played-track-line-p'."
   (and (bongo-randomly-playable-track-line-p point)
+       (not (and bongo-mark-played-tracks
+                 (bongo-currently-playing-track-line-p)))
        (not (bongo-played-track-line-p))))
 
 (defun bongo-play-random (&optional argument)
-- 
Daniel Brockman <address@hidden>

reply via email to

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