From f8c71d96e998c1c90283ac0772512be2b8cc3159 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 10 Jun 2019 09:37:50 +0200 Subject: [PATCH] [Music] Check that list of files is not empty before changing EMMS playlist --- site-lisp/db-music.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site-lisp/db-music.el b/site-lisp/db-music.el index 87dd2a6..cfeb1ef 100644 --- a/site-lisp/db-music.el +++ b/site-lisp/db-music.el @@ -11,6 +11,8 @@ "Generate EMMS playlist from FILES. Shuffle it and start playing it afterwards." + (when (seq-empty-p files) + (user-error "List of files is empty, nothing to do")) (save-window-excursion (let ((music-buffer-name "*EMMS Playlist* -- Personal")) (unless (get-buffer music-buffer-name)