emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/listen 748a148188 11/12: Fix: (listen-current-player)


From: ELPA Syncer
Subject: [elpa] externals/listen 748a148188 11/12: Fix: (listen-current-player)
Date: Sun, 18 Aug 2024 06:58:37 -0400 (EDT)

branch: externals/listen
commit 748a148188fbcd5a5777e79663225638633ab192
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: (listen-current-player)
    
    I thought that DEFVAR could be used there, but apparently not.
---
 listen-lib.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/listen-lib.el b/listen-lib.el
index 7287e774f4..85d400f09e 100644
--- a/listen-lib.el
+++ b/listen-lib.el
@@ -141,8 +141,9 @@ return a list of values; otherwise return the sole value."
 
 (defun listen-current-player ()
   "Return variable `listen-player' or a newly set one if nil."
+  (defvar listen-backend)
   (or listen-player
-      (setf listen-player (funcall (defvar listen-backend)))))
+      (setf listen-player (funcall listen-backend))))
 
 (cl-defun listen-current-track (&optional (player listen-player))
   "Return track playing on PLAYER, if any."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]