diff options
author | Yoni Rabkin <yoni@rabkins.net> | 2021-04-29 12:53:15 -0400 |
---|---|---|
committer | Yoni Rabkin <yoni@rabkins.net> | 2021-04-29 12:53:15 -0400 |
commit | 3a8ba30d1fb8d94ab3c63aa678a0059cc8b48b2f (patch) | |
tree | be516b15779a7e0e2f1a9892c404bfad3399454d /emms-playlist-limit.el | |
parent | 02915f7aa24d27d717ff4821a58f791cffcc174c (diff) |
*.el: Minor improvements and simplifications
* emms-playlist-limit.el (emms-playlist-limit--limit-playlist): Simplify.
* emms-playing-time.el (emms-playing-time-display): Simplify.
* emms-player-mpv.el (emms-player-mpv-ipc-proc)
(emms-player-mpv-ipc-connect-command, emms-player-mpv-ipc-id)
(emms-player-mpv-ipc-stop-command)
(emms-player-mpv-event-connect-hook)
(emms-player-mpv-ipc-conn-emacs-26.1-workaround): Fit docstrings with
80 columns.
* emms-player-mpd.el (emms-player-mpd-ensure-process): Simplify `if`
with identical branches.
* emms-browser.el (emms-browser-run-mode-hooks): Simplify and move it
out of `eval-and-compile`.
(emms-browser-sort-cadr, emms-browser-sort-car): Add `debug` spec.
patch by Stefan Monnier
Diffstat (limited to 'emms-playlist-limit.el')
-rw-r--r-- | emms-playlist-limit.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/emms-playlist-limit.el b/emms-playlist-limit.el index 8f274c8..f21f4f8 100644 --- a/emms-playlist-limit.el +++ b/emms-playlist-limit.el @@ -178,9 +178,11 @@ is non-nil." (defun emms-playlist-limit--limit-playlist (playlist type regexp) "Return a new playlist of tracks in PLAYLIST with TYPE matching REGEXP." - (let* ((bufname (concat (buffer-name playlist) - (format "/%s=%s" - (emms-replace-regexp-in-string "info-" "" (symbol-name type)) regexp)))) + (let* ((bufname (format "%s/%s=%s" + (buffer-name playlist) + (emms-replace-regexp-in-string "info-" "" + (symbol-name type)) + regexp))) (emms-playlist-limit--derive-playlist playlist (lambda (track) (let ((field (emms-playlist-limit-track-get track type))) |