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

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

[nongnu] elpa/mpv 705e81b8a6 42/50: Make mpv-version more verbose and up


From: ELPA Syncer
Subject: [nongnu] elpa/mpv 705e81b8a6 42/50: Make mpv-version more verbose and update its docstring as suggested
Date: Tue, 28 Dec 2021 00:58:43 -0500 (EST)

branch: elpa/mpv
commit 705e81b8a62a5994cb0e8bd369c99cdc8378f220
Author: firmart <firminmartin24@gmail.com>
Commit: firmart <firminmartin24@gmail.com>

    Make mpv-version more verbose and update its docstring as suggested
---
 mpv.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/mpv.el b/mpv.el
index 6ac73e5271..5348c92c83 100644
--- a/mpv.el
+++ b/mpv.el
@@ -364,12 +364,14 @@ of \\[universal-argument] will add another 
`mpv-seek-step' seconds."
 
 ;;;###autoload
 (defun mpv-version ()
-  "Return mpv version."
+  "Return the mpv version string.
+When called interactively, also show a more verbose version in
+the echo area."
   (interactive)
-  (let ((version (cadr (split-string (car (process-lines "mpv" 
"--version"))))))
+  (let ((version (cadr (split-string (car (process-lines mpv-executable 
"--version"))))))
     (prog1 version
       (if (called-interactively-p 'interactive)
-         (message "%s" version)))))
+         (message "mpv %s" version)))))
 
 (provide 'mpv)
 ;;; mpv.el ends here



reply via email to

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