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

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

[nongnu] elpa/mpv 31b630d192 11/12: Rename mpv-entry-format to mpv-entry


From: ELPA Syncer
Subject: [nongnu] elpa/mpv 31b630d192 11/12: Rename mpv-entry-format to mpv-entry-with-offset-format
Date: Mon, 1 Aug 2022 09:58:52 -0400 (EDT)

branch: elpa/mpv
commit 31b630d19293d8af982ae8ac5b2e62edba0959cc
Author: Johann Klähn <johann@jklaehn.de>
Commit: Johann Klähn <johann@jklaehn.de>

    Rename mpv-entry-format to mpv-entry-with-offset-format
---
 mpv.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mpv.el b/mpv.el
index cdd2368535..2988a60c30 100644
--- a/mpv.el
+++ b/mpv.el
@@ -69,7 +69,7 @@
   :type 'number
   :group 'mpv)
 
-(defcustom mpv-entry-format "%t [%o]"
+(defcustom mpv-entry-with-offset-format "%t [%o]"
   "The format of the entries for mpv listing operations.
 
 The following %-escapes will be expanded using `format-spec':
@@ -398,12 +398,14 @@ A-B loop."
 (cl-defun mpv--format-entry (title &optional offset &key (current nil) 
(looping nil))
   "Format entry for minibuffer display with TITLE, optionally showing a time 
OFFSET value.
 
+When an offset is provided, `mpv-entry-with-offset-format' is used to format 
the result.
+
 If the entry corresponds to the CURRENT item, `mpv-current-indicator' is 
appended.
 If the entry is LOOPING, `mpv-loop-indicator' is appended."
   (concat
    (if (numberp offset)
        (format-spec
-        mpv-entry-format
+        mpv-entry-with-offset-format
         `((?t . ,title)
           (?o . ,(format-time-string
                   (if (< 3600 offset) "%T" "%M:%S")



reply via email to

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