[Music] Check that list of files is not empty before changing EMMS playlist

This commit is contained in:
Daniel - 2019-06-10 09:37:50 +02:00
parent 7cd6d399a4
commit f8c71d96e9
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 0 deletions

View File

@ -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)