emms-patches
[Top][All Lists]
Advanced

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

[Emms-patches] darcs patch: emms-player-mpd: When showing the curren...


From: Michael Olson
Subject: [Emms-patches] darcs patch: emms-player-mpd: When showing the curren... (and 2 more)
Date: Wed, 24 May 2006 21:46:03 -0400

Wed May 24 15:59:11 EDT 2006  foo
  * emms-player-mpd: When showing the currently-playing song, prepend the name 
of the radio station, if it exists.

Wed May 24 16:00:08 EDT 2006  foo
  * emms-playlist-mode: Make "d" kill the entire line.  This seems to be a good 
compromise of those who use C-k and those who want more standard object-killing 
behavior.

Wed May 24 21:42:53 EDT 2006  Michael Olson <address@hidden>
  * emms-player-mpd: Use more robust method of detecting whether we need to 
force-feed MusicPD our playlist.
New patches:

[emms-player-mpd: When showing the currently-playing song, prepend the name of 
the radio station, if it exists.
foo**20060524195911] {
hunk ./emms-player-mpd.el 946
-         (track (emms-dictionary '*track*))
hunk ./emms-player-mpd.el 949
-         (name (cdr (assoc "name" info)))
+         (name (cdr (assoc "name" info))) ; radio feeds sometimes set this
+         (file (cdr (assoc "file" info)))
hunk ./emms-player-mpd.el 953
-      (if name
-          (setq desc name)
-        (emms-track-set track 'type 'file)
-        (emms-track-set track 'name (cdr (assoc "file" info)))
-        (emms-info-mpd track info)
-        (setq desc (emms-track-description track))))
+      (when name
+        (setq desc name))
+      (when file
+        (let ((track (emms-dictionary '*track*)))
+          (emms-track-set track 'type 'file)
+          (emms-track-set track 'name file)
+          (emms-info-mpd track info)
+          (if name
+              (setq desc (concat name ": " (emms-track-description track)))
+            (setq desc (emms-track-description track))))))
}

[emms-playlist-mode: Make "d" kill the entire line.  This seems to be a good 
compromise of those who use C-k and those who want more standard object-killing 
behavior.
foo**20060524200008] {
hunk ./emms-playlist-mode.el 121
-    (define-key map (kbd "d") 'emms-playlist-mode-kill-track)
+    (define-key map (kbd "d") 'emms-playlist-mode-kill-entire-track)
hunk ./emms-playlist-mode.el 281
+;; d
+(defun emms-playlist-mode-kill-entire-track ()
+  "Kill track at point, including newline."
+  (interactive)
+  (let ((kill-whole-line t))
+    (emms-playlist-mode-kill-track)))
+
}

[emms-player-mpd: Use more robust method of detecting whether we need to 
force-feed MusicPD our playlist.
Michael Olson <address@hidden>**20060525014253] {
hunk ./emms-player-mpd.el 310
+(make-variable-buffer-local 'emms-player-mpd-playlist-id)
+
hunk ./emms-player-mpd.el 595
+          (set-buffer-modified-p nil)
hunk ./emms-player-mpd.el 824
+        (set-buffer-modified-p nil)
hunk ./emms-player-mpd.el 836
-     (if (and (stringp emms-player-mpd-playlist-id)
-              (string= emms-player-mpd-playlist-id id))
-         (emms-player-mpd-start-and-sync-1 emms-playlist-buffer id)
-       (emms-player-mpd-sync-from-emms
-        #'emms-player-mpd-start-and-sync-1)))))
+     (let ((buf-id (with-current-emms-playlist emms-player-mpd-playlist-id)))
+       (if (and (not (buffer-modified-p emms-playlist-buffer))
+                (stringp buf-id)
+                (string= buf-id id))
+           (emms-player-mpd-start-and-sync-1 emms-playlist-buffer id)
+         (emms-player-mpd-sync-from-emms
+          #'emms-player-mpd-start-and-sync-1))))))
hunk ./emms-player-mpd.el 890
-    (setq emms-player-mpd-playlist-id nil)
}

Context:

[emms-player-mpd: Fix bug that caused unconditional reloading of the entire 
MusicPD playlist whenever the track was changed manually.
Michael Olson <address@hidden>**20060524061655] 
[emms-player-mpd: Overhaul for streamlist support, and fix a few miscellaneous 
issues.
Michael Olson <address@hidden>**20060524055707] 
[emms-player-mpd: Add a few checks to make sure that the given buffer exists 
before trying to do anything with it.
Michael Olson <address@hidden>**20060517035419] 
[emms-source-playlist: Do not expand names of files in playlists, as this can 
cause problems with emms-player-mpd in some configurations.
Michael Olson <address@hidden>**20060516081257] 
[emms-playlist-mode: Implement the option (disabled by default) of opening a 
new EMMS buffer for a playlist, when hitting RET on one.
Michael Olson <address@hidden>**20060510040730] 
[emms-playlist-mode.el: Don't put a period after the mode map. This hangs 21.4 
on display.
address@hidden 
[TAG 2.0
address@hidden 
Patch bundle hash:
8bf16f7c8c49f26cd7ea4fc6bf90297140241593

reply via email to

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