Function: mpc-songs-search
mpc-songs-search is an interactive and byte-compiled function defined
in mpc.el.gz.
Signature
(mpc-songs-search STRING)
Documentation
Filter songs to those who include STRING in their metadata.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defun mpc-songs-search (string)
"Filter songs to those who include STRING in their metadata."
(interactive "sSearch for: ")
(setq mpc--song-search
(if (zerop (length string)) nil string))
(let ((mpc--changed-selection t))
(while mpc--changed-selection
(setq mpc--changed-selection nil)
(dolist (buf (process-get (mpc-proc) 'buffers))
(setq buf (cdr buf))
(when (buffer-local-value 'mpc-tag buf)
(with-current-buffer buf (mpc-reorder))))
(mpc-songs-refresh))))