emms-patches
[Top][All Lists]
Advanced

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

[Emms-patches] darcs patch: Add NEWS items since version 2.1 (and 4 more


From: Michael Olson
Subject: [Emms-patches] darcs patch: Add NEWS items since version 2.1 (and 4 more)
Date: Sun, 22 Oct 2006 16:18:05 -0400

Tue Oct 17 18:21:17 EDT 2006  Michael Olson <address@hidden>
  * Add NEWS items since version 2.1

Sat Oct 21 21:10:50 EDT 2006  Michael Olson <address@hidden>
  * emms-player-mpd: Work properly with tracks inserted by emms-browser

Sat Oct 21 21:22:23 EDT 2006  Michael Olson <address@hidden>
  * emms-player-mpd: Update version recommendation

Sat Oct 21 22:28:12 EDT 2006  Michael Olson <address@hidden>
  * emms-playlist-mode: Fix typo in hook name

Sun Oct 22 16:17:24 EDT 2006  Michael Olson <address@hidden>
  * emms-playlist-mode: Handle case where selection has not been set but user 
wants to delete a region
New patches:

[Add NEWS items since version 2.1
Michael Olson <address@hidden>**20061017222117] {
hunk ./NEWS 1
+News since version 2.1:
+
+  - Saving bookmarks in individual tracks is now supported.
+  - Support deleting files from the cache.
+  - Add mms:// URL support for emms-player-mplayer.
+  - Implement pause, resume, and seek support for
+    emms-player-alsaplayer.
+  - A new player called emms-player-timidity has been implemented
+    which is capable of playing midi files.
+  - Hitting "<" or ">" in emms-playlist-mode causes seeking backward
+    and forward, respectively.
+  - emms-player-mpd:
+    - Display the correct error message if an error occurs while
+      trying to play a stream.
+    - When using the emms-volume interface, allow the amount of change
+      in the volume to be specified using the
+      `emms-player-mpd-volume-change-amount' option.
+
}

[emms-player-mpd: Work properly with tracks inserted by emms-browser
Michael Olson <address@hidden>**20061022011050] {
hunk ./NEWS 13
+    - Using the emms-browser to insert and play tracks now works
+      properly with emms-player-mpd.
hunk ./emms-player-mpd.el 539
+(defun emms-player-mpd-select-song (prev-song new-song)
+  "Move to the given song position.
+
+The amount to move is the number difference between PREV-SONG and
+NEW-SONG.  NEW-SONG should be a string containing a number.
+PREV-SONG may be either a string containing a number or nil,
+which indicates that we should start from the beginning of the
+buffer and move to NEW-SONG."
+  (with-current-emms-playlist
+    ;; move to current track
+    (goto-char (if (and (stringp prev-song)
+                        emms-playlist-selected-marker
+                        (marker-position emms-playlist-selected-marker))
+                   emms-playlist-selected-marker
+                 (point-min)))
+    ;; seek forward or backward
+    (let ((diff (if (stringp prev-song)
+                    (- (string-to-number new-song)
+                       (string-to-number prev-song))
+                  (string-to-number new-song))))
+      (condition-case nil
+          (progn
+            ;; skip to first track if not on one
+            (when (and (> diff 0)
+                       (not (emms-playlist-track-at (point))))
+              (emms-playlist-next))
+            ;; move to new track
+            (while (> diff 0)
+              (emms-playlist-next)
+              (setq diff (- diff 1)))
+            (while (< diff 0)
+              (emms-playlist-previous)
+              (setq diff (+ diff 1)))
+            ;; select track at point
+            (unless (emms-playlist-selected-track-at-p)
+              (emms-playlist-select (point))))
+        (error (concat "Could not move to position " new-song))))))
+
hunk ./emms-player-mpd.el 616
-              (progn
-                (goto-line (1+ (string-to-number song)))
-                (emms-playlist-select (point)))
+              (emms-player-mpd-select-song nil song)
hunk ./emms-player-mpd.el 660
-             (setq emms-player-mpd-current-song song)
hunk ./emms-player-mpd.el 662
-             (with-current-emms-playlist
-               (emms-playlist-select (progn
-                                       (goto-line (1+ (string-to-number song)))
-                                       (point))))
+             (emms-player-mpd-select-song emms-player-mpd-current-song song)
+             (setq emms-player-mpd-current-song song)
hunk ./emms-player-mpd.el 826
-        (emms-player-mpd-play (1- (emms-line-number-at-pos
-                                   emms-playlist-selected-marker)))))))
+        (let ((track-cnt 0))
+          (save-excursion
+            (goto-char
+             (if (and emms-playlist-selected-marker
+                      (marker-position emms-playlist-selected-marker))
+                 emms-playlist-selected-marker
+               (point-min)))
+            (condition-case nil
+                (while t
+                  (emms-playlist-previous)
+                  (setq track-cnt (1+ track-cnt)))
+              (error nil)))
+          (emms-player-mpd-play track-cnt))))))
}

[emms-player-mpd: Update version recommendation
Michael Olson <address@hidden>**20061022012223] {
hunk ./emms-player-mpd.el 39
-;; available.  I recommend getting the latest development version; see
-;; http://mpd.wikicities.com/wiki/Subversion for nightly Debian
-;; packages and the svn repo.
+;; available.  It is recommended to use mpd version 0.12.0 or higher.
hunk ./emms-player-mpd.el 871
-Afterward, the status of MusicPD will be tracked."
+Afterward, the status of MusicPD will be tracked.
+
+This also has the effect of changing the current EMMS playlist to
+be the same as the curreent MusicPD playlist.  Thus, this
+function is useful to call if the contents of the EMMS playlist
+buffer get out-of-sync for some reason."
}

[emms-playlist-mode: Fix typo in hook name
Michael Olson <address@hidden>**20061022022812] {
hunk ./emms-playlist-mode.el 496
-  (run-hooks 'emms-playlist-mode-hooks))
+  (run-hooks 'emms-playlist-mode-hook))
}

[emms-playlist-mode: Handle case where selection has not been set but user 
wants to delete a region
Michael Olson <address@hidden>**20061022201724] {
hunk ./emms-playlist-mode.el 301
-   (when (emms-playlist-mode-between-p
-          (marker-position emms-playlist-selected-marker)
-          (region-beginning)
-          (region-end))
+   (when (and (markerp emms-playlist-selected-marker)
+              (emms-playlist-mode-between-p
+               (marker-position emms-playlist-selected-marker)
+               (region-beginning)
+               (region-end)))
}

Context:

[emms-player-mplayer.el: Mplayer also supports .vob files.
address@hidden 
[FluidSynth midi file player
address@hidden 
[Added delYsid
address@hidden 
[jackd-support-for-emacs
address@hidden
 jackd is a pro-audio server which can be used as a backend for
 alsaplayer, mplayer, and lots of other linux audio apps.
 This module allows to start jackd from within emacs, and
 connect/disconnect jack client ports.
] 
[browser: ensure the RNG is seeded before use
Damien Elmes <address@hidden>**20061011151535] 
[browser: require sort (fixes bug with sort-fold-case being void)
Damien Elmes <address@hidden>**20061010125718] 
[emms-player-mpd: When using the emms-volume interface, allow the user to 
specify the amount of change in the volume
Michael Olson <address@hidden>**20061017220404] 
[Documentation cleanups in emms-player-mpd and emms-source-playlist
Michael Olson <address@hidden>**20061017215345] 
[Since emms-player-seeked-to-functions and emms-player-time-set-functions hooks 
do the same thing, replace the former with the latter
Michael Olson <address@hidden>**20061017210238] 
[emms-browser: Fix compiler warning
Michael Olson <address@hidden>**20061017205310] 
[emms-player-mpd: Implement seek-to support
Michael Olson <address@hidden>**20061017205106] 
[fix faulty emms-playlist-mode keybinding, fix due to William and Damien.
address@hidden 
[Added seeking to the playlist keymap, and updated the manual.
address@hidden 
[emms-player-mpd: Only display error if we are certain that url.el is not 
up-to-date
Michael Olson <address@hidden>**20061004032213] 
[seek-for-alsaplayer
address@hidden
 Add relative seek support for alsaplayer
] 
[midi-files-via-timidity
address@hidden
 A simple-player definition for timidity
] 
[emms-playing-time.el: Minor cleanups.
address@hidden 
[emms-lyrics.el: Minor Cleanups.
address@hidden 
[pause-for-alsaplayer
address@hidden
 Get pause/resume working for alsaplayer
] 
[mms-for-mplayer
address@hidden
 mplayer also supports mms:// URLs
] 
[DoTheRightThing with player pausing and emms-bookmarks.el
address@hidden 
[Added emms-bookmarks.el
address@hidden 
[Added `emms-pause' to emms-playlist-mode.el bound to to ``P''.
address@hidden 
[browser: add deletion started/finished message
Damien Elmes <address@hidden>**20060923051128] 
[Added a link to the online version of the manual.
address@hidden 
[emms-playing-time.el now works with `seek-to'.
address@hidden 
[Added `seek-to' to emms.el and emms-player-mplayer.el.
address@hidden 
[browser/cache: support deleting files, make emms-cache-dirty a defsubst
Damien Elmes <address@hidden>**20060922090553] 
[TAG 2.1
address@hidden 
Patch bundle hash:
17fb01f7cdf71e11fde7c1a810088bb4855dcad4

reply via email to

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