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

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

[nongnu] elpa/mpv 8da5b19f3d 07/50: cleanup


From: ELPA Syncer
Subject: [nongnu] elpa/mpv 8da5b19f3d 07/50: cleanup
Date: Tue, 28 Dec 2021 00:58:34 -0500 (EST)

branch: elpa/mpv
commit 8da5b19f3d9195a863429be30b71cb82b492a01f
Author: Johann Klähn <kljohann@gmail.com>
Commit: Johann Klähn <kljohann@gmail.com>

    cleanup
---
 mpv-mode.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/mpv-mode.el b/mpv-mode.el
index 075a73ef05..5cfba03ce8 100644
--- a/mpv-mode.el
+++ b/mpv-mode.el
@@ -32,6 +32,8 @@
 (require 'json)
 
 (define-namespace mpv-mode-
+:package mpv-mode
+:group external
 
 (defcustom executable "mpv"
   "Name or path to the mpv executable."
@@ -129,12 +131,7 @@ drops unsolicited event messages."
 (defun pause ()
   "Pause or unpause playback."
   (interactive)
-  (-enqueue '("get_property" "pause")
-            (lambda (paused)
-              (-enqueue
-               `("set_property" "pause"
-                 ,(if (eq paused :json-false) t :json-false))
-               #'ignore))))
+  (-enqueue '("cycle" "pause") #'ignore))
 
 (defun insert-playback-position ()
   "Insert the current playback position at point."



reply via email to

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