[PATCH] Allow invoking 'emms-streams' as the "first" EMMS command of the session

Daniel Semyonov <[email protected]>
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
Hi,

The 'emms-streams' command currently fails when invoked right after
starting Emacs since along the way it calls
'emms-source-playlist-parse-native' which tries to call
'emms-cache-set-function'.
'emms-cache-set-function' is nil at that point, causing the command to
fail.

Attached is a very simple patch which just requires 'emms-cache' when
loading 'emms-streams', fixing this issue.

Regards,
Daniel
0001-emms-streams.el-Require-emms-cache.patch (text/x-patch, 599 B)
From e2ee295b32d982c99d758a3d0b06532f8bda032d Mon Sep 17 00:00:00 2001
From: Daniel Semyonov <[email protected]>
Date: Mon, 24 Jul 2023 15:08:30 +0300
Subject: [PATCH] * emms-streams.el: Require 'emms-cache'

---
 emms-streams.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emms-streams.el b/emms-streams.el
index cfc4b14..104ca29 100644
--- a/emms-streams.el
+++ b/emms-streams.el
@@ -37,6 +37,7 @@
 (require 'emms)
 (require 'emms-source-playlist)
 (require 'emms-playlist-mode)
+(require 'emms-cache)
 
 
 ;;; ------------------------------------------------------------------
-- 
2.41.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.