I've worked on emms-mpc.el a bit more, with the following changes. - Comments improved, and some EMMS setup info is available.
- The supported extensions regexp is built by calling MusicPD, so you'll get the full list. If that fails, a sane default is provided. - pls playlists are now supported. Both m3u and pls playlists have their contents added on a per-file basis by emms-player-mpc-load, rather than calling "mpc load". This makes things "just work" more often. - New option `emms-player-mpc-music-directory' allows you to specify your value of "music_directory" from your MusicPD conf so that playlist entries with absolute file names work. Or just leave it nil if the entries are all relative. - I found that Internet radio streams work, so that functionality is enabled. - The now-playing function `emms-player-mpc-show' makes sure that what we have is really track information, and returns nil if it isn't. - Trying to add a song (`emms-player-mpc-add') will return nil if it was unsuccessful. This is used by both `emms-player-mpc-load' and `emms-player-mpc-start'. I wasn't sure about the default behavior for notifying the user of failure, but perhaps a message would be nice. Now, a few suggestions for emms. 1. Could someone please change `emms-seek' and `emms-pause' in emms-player-extensions.el so that the seek and pause functionalities are programmatically determined, rather than checking against 'mplayer? 2. In the latest snapshot from Trent Buck, I noticed when using `emms-pbi' that the current song face wasn't being changed and tracks aren't being advanced when I manually select a song. The following makes the face change work -- haven't tested to see whether track advancing works after this. I'm not sure if this is the right fix. In emms-pbi.el, change the definition of emms-pbi-manually-change-song-hook to: (defcustom emms-pbi-manually-change-song-hook '(emms-pbi-update-current-face) "Hook that is called when the song is manually changed." :type 'hook :options '(emms-pbi-update-current-face) :group 'emms-pbi) Here's version 2 of emms-mpc.el.
emms-mpc.el
Description: emms-mpc.el
-- Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: anime, Debian, XHTML, wiki, Emacs Lisp /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug |_] | \| |_| Jabber: mwolson_at_hcoop.net
pgpSymScmQKYY.pgp
Description: PGP signature
_______________________________________________ Emms-help mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emms-help
