branch: externals/emms
commit 244913c89542902cb71f9bb20b742bc7d6d5b2b4
Author: Yoni Rabkin <y...@gnu.org>
Commit: Yoni Rabkin <y...@gnu.org>

    * emms.el: insert into the current playlist buffer.
    
    Allow a call from outside the playlist buffer. For example, from a
    Dired buffer.
---
 emms.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/emms.el b/emms.el
index 40c167785e..932bcd9f11 100644
--- a/emms.el
+++ b/emms.el
@@ -1522,8 +1522,7 @@ See emms-source-file.el for some examples."
 
 (defun emms-source-insert (source &rest args)
   "Insert the tracks from SOURCE in the current buffer."
-  (if (not emms-playlist-buffer-p)
-      (error "Not in an EMMS playlist buffer")
+  (with-current-emms-playlist
     (apply #'emms-playlist-insert-source source args)))
 
 ;;; User-defined playlists

Reply via email to