[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/listen 5a6a99d00d 016/103: Autoloads, menu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/listen 5a6a99d00d 016/103: Autoloads, menu |
Date: |
Mon, 26 Feb 2024 12:59:06 -0500 (EST) |
branch: externals/listen
commit 5a6a99d00d3282214d63ab10272e5f06723aa631
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Autoloads, menu
---
listen-queue.el | 4 +++-
listen.el | 16 +++++++++++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/listen-queue.el b/listen-queue.el
index 37a5fc4db8..6a02ff5b65 100644
--- a/listen-queue.el
+++ b/listen-queue.el
@@ -97,7 +97,7 @@
(pop-to-buffer (current-buffer))
(goto-char (point-min))
(re-search-forward "▶" nil t)
- (hl-line-mode))))
+ (hl-line-mode 1))))
(defun listen-queue--update-buffer (queue)
"Update QUEUE's buffer, if any."
@@ -133,6 +133,7 @@ PROMPT is passed to `completing-read', which see."
(cl-find selected listen-queues :key #'listen-queue-name :test
#'equal)
(push (make-listen-queue :name selected) listen-queues))))))
+;;;###autoload
(defun listen-queue-new (name)
"Add and return a new queue having NAME."
(interactive (list (read-string "New queue name: ")))
@@ -143,6 +144,7 @@ PROMPT is passed to `completing-read', which see."
(interactive (list (listen-queue-complete :prompt "Discard queue: ")))
(cl-callf2 delete queue listen-queues))
+;;;###autoload
(cl-defun listen-queue-add (queue files)
"Add FILES to QUEUE."
(interactive
diff --git a/listen.el b/listen.el
index 19b1bd4415..8e35f9f252 100755
--- a/listen.el
+++ b/listen.el
@@ -56,6 +56,7 @@
(defvar listen-mode-lighter nil)
+;;;###autoload
(define-minor-mode listen-mode
"Show Listen player status in the mode line."
:global t
@@ -128,6 +129,7 @@
(interactive (list listen-player))
(listen--stop player))
+;;;###autoload
(defun listen-play (player file)
(interactive
(list (listen--player)
@@ -172,6 +174,7 @@ TIME is an HH:MM:SS string."
(require 'transient)
+;;;###autoload
(transient-define-prefix listen-menu ()
"Show Listen menu."
:refresh-suffixes t
@@ -184,7 +187,18 @@ TIME is an HH:MM:SS string."
("SPC" "Pause" listen-pause)
("p" "Play" listen-play)
("s" "Stop" listen-stop)
- ]]
+ ]
+
+ ]
+ ["Queue"
+ :description
+ (lambda ()
+ (if-let ((queue (map-elt (listen-player-etc listen-player) :queue)))
+ (concat "Queue: " (listen-queue-name queue))
+ "No queue"))
+ ("a" "Add" listen-queue-add)
+ ]
+
)
(provide 'listen)
- [elpa] externals/listen a9ff51ecfb 020/103: Faces, (continued)
- [elpa] externals/listen a9ff51ecfb 020/103: Faces, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 1714586ecf 022/103: Overlay, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 2206de36b0 024/103: Improvements and changes, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 79888f5af1 026/103: More, ELPA Syncer, 2024/02/26
- [elpa] externals/listen a47db2edab 028/103: Genre column, ELPA Syncer, 2024/02/26
- [elpa] externals/listen ba8806a020 029/103: Move tracks in queue, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 42c5397b01 030/103: Add TODO, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 2eb2ac9db4 027/103: Volume stuff, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 4390995834 031/103: SPC to pause in queue, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 8d3706c4c3 033/103: Rename commands, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 5a6a99d00d 016/103: Autoloads, menu,
ELPA Syncer <=
- [elpa] externals/listen 6ade160cf6 037/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen b21a0ee496 039/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 7d61d5853a 040/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 8d030200cd 052/103: Add README, ELPA Syncer, 2024/02/26
- [elpa] externals/listen f7fcff0c32 047/103: Fixes, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 2b5d86b377 050/103: Commentary, etc., ELPA Syncer, 2024/02/26
- [elpa] externals/listen 06c78bdfe3 044/103: Fix, ELPA Syncer, 2024/02/26
- [elpa] externals/listen a6c67deeba 049/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 86e6677c6b 056/103: Fix, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 4fac16dd51 057/103: Docs, ELPA Syncer, 2024/02/26