[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mpv 2d24187f7b 43/50: Merge pull request #9 from firmart/p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mpv 2d24187f7b 43/50: Merge pull request #9 from firmart/patch-mpv-version |
Date: |
Tue, 28 Dec 2021 00:58:43 -0500 (EST) |
branch: elpa/mpv
commit 2d24187f7bdb0495c90d5109a730742e735636ba
Merge: d7bb3a7082 705e81b8a6
Author: Johann Klähn <johann@jklaehn.de>
Commit: GitHub <noreply@github.com>
Merge pull request #9 from firmart/patch-mpv-version
---
mpv.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/mpv.el b/mpv.el
index 54d696c34d..5348c92c83 100644
--- a/mpv.el
+++ b/mpv.el
@@ -362,5 +362,16 @@ of \\[universal-argument] will add another `mpv-seek-step'
seconds."
(interactive)
(mpv--enqueue '("revert-seek") #'ignore))
+;;;###autoload
+(defun 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-executable
"--version"))))))
+ (prog1 version
+ (if (called-interactively-p 'interactive)
+ (message "mpv %s" version)))))
+
(provide 'mpv)
;;; mpv.el ends here
- [nongnu] elpa/mpv 3a43c9e60a 14/50: reorder function definitions, (continued)
- [nongnu] elpa/mpv 3a43c9e60a 14/50: reorder function definitions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 338af25d20 23/50: add mpv-on-event-hook, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 937bdf522a 17/50: implement seeking and changing of playback speed, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 0e4318b45f 13/50: improve docstrings, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 0579b5c707 09/50: support inserting org timer list items, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ce3bbfac36 22/50: add mpv-default-options, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9ef359d712 20/50: fix generation of autoloads, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9ff4d5d80b 25/50: fix mpv-insert-playback-position, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 705e81b8a6 42/50: Make mpv-version more verbose and update its docstring as suggested, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ed83369372 39/50: Fix mpv-seek-to-position-at-point for start-of-playback position, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 2d24187f7b 43/50: Merge pull request #9 from firmart/patch-mpv-version,
ELPA Syncer <=
- [nongnu] elpa/mpv ed9c7b0028 21/50: move functions to public interface, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ec4929ad5d 19/50: fix package header for melpa, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9bd6d36cc7 50/50: Fix #16, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 32f1478ed2 33/50: Remove dependency on names package, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 6cf13615a7 49/50: Add commands to go to next/prev entry on the playlist (#20), ELPA Syncer, 2021/12/28