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

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

[elpa] externals/listen 0bca09bfc9 2/4: Fix: (listen--send MPV) Just mes


From: ELPA Syncer
Subject: [elpa] externals/listen 0bca09bfc9 2/4: Fix: (listen--send MPV) Just message for json-read errors
Date: Mon, 9 Sep 2024 06:58:34 -0400 (EDT)

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

    Fix: (listen--send MPV) Just message for json-read errors
    
    These seem to happen occasionally when between tracks and are
    harmless.  Unless a better solution can be found, this seems best.
---
 listen-mpv.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/listen-mpv.el b/listen-mpv.el
index b40a9d1ab0..62d116ab29 100755
--- a/listen-mpv.el
+++ b/listen-mpv.el
@@ -145,8 +145,8 @@ Stops playing, clears playlist, adds FILE, and plays it."
              for result = (condition-case-unless-debug err
                               (json-read)
                             (error
-                             (error "listen--send: JSON-READ signaled error: 
%S  BUFFER-CONTENTS:%S  POS:%s  BUFFER-SIZE:%s  EOBP:%s"
-                                    err (buffer-string) (point) (buffer-size) 
(eobp))))
+                             (message "listen--send: JSON-READ signaled error: 
%S  BUFFER-CONTENTS:%S  POS:%s  BUFFER-SIZE:%s  EOBP:%s"
+                                      err (buffer-string) (point) 
(buffer-size) (eobp))))
              while result
              for value = (pcase (map-elt result 'request_id)
                            ((pred (equal request-id))



reply via email to

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