[Music] Check that list of files is not empty before changing EMMS playlist
This commit is contained in:
parent
7cd6d399a4
commit
f8c71d96e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue