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: Add a few checks to make su


From: Michael Olson
Subject: [Emms-patches] darcs patch: emms-player-mpd: Add a few checks to make sure that th...
Date: Tue, 16 May 2006 23:55:44 -0400

Tue May 16 23:54:19 EDT 2006  Michael Olson <address@hidden>
  * emms-player-mpd: Add a few checks to make sure that the given buffer exists 
before trying to do anything with it.
New patches:

[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] {
hunk ./emms-player-mpd.el 758
-  (let ((emms-playlist-buffer buffer))
-    (with-current-emms-playlist
-      (emms-player-mpd-play (1- (emms-line-number-at-pos
-                                 emms-playlist-selected-marker))))))
+  (when (buffer-live-p buffer)
+    (let ((emms-playlist-buffer buffer))
+      (with-current-emms-playlist
+        (emms-player-mpd-play (1- (emms-line-number-at-pos
+                                   emms-playlist-selected-marker)))))))
hunk ./emms-player-mpd.el 902
-             (with-current-buffer buffer
-               (insert desc)))
+             (when (buffer-live-p buffer)
+               (with-current-buffer buffer
+                 (insert desc))))
}

Context:

[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:
f174b15090c5e0e9314fce962ef1eccda96c7872

reply via email to

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